mirror of
https://github.com/apache/lucene.git
synced 2025-02-22 10:15:27 +00:00
SOLR-6937 don't replace periods
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1651646 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
545788fea9
commit
71f698c543
@ -1379,7 +1379,7 @@
|
||||
<processor class="solr.DistributedUpdateProcessorFactory"/>
|
||||
<processor class="solr.RemoveBlankFieldUpdateProcessorFactory"/>
|
||||
<processor class="solr.FieldNameMutatingUpdateProcessorFactory">
|
||||
<str name="pattern">[^\w-]</str>
|
||||
<str name="pattern">[^\w-\.]</str>
|
||||
<str name="replacement">_</str>
|
||||
</processor>
|
||||
<processor class="solr.ParseBooleanFieldUpdateProcessorFactory"/>
|
||||
|
@ -101,6 +101,7 @@ public class SolrSchemalessExampleTest extends SolrExampleTestsBase {
|
||||
"{\"first-second\" : \"name\"}" +
|
||||
"{\"x+y\" : \"name\"}" +
|
||||
"{\"p%q\" : \"name\"}" +
|
||||
"{\"p.q\" : \"name\"}" +
|
||||
"{\"a&b\" : \"name\"}"
|
||||
;
|
||||
HttpClient httpClient = client.getHttpClient();
|
||||
@ -116,6 +117,7 @@ public class SolrSchemalessExampleTest extends SolrExampleTestsBase {
|
||||
"first-second",
|
||||
"a_b",
|
||||
"p_q",
|
||||
"p.q",
|
||||
"x_y");
|
||||
HashSet set = new HashSet();
|
||||
QueryResponse rsp = assertNumFound("*:*", expected.size());
|
||||
|
Loading…
x
Reference in New Issue
Block a user