Apache Solr open-source search software
example: first attempt at *_nwd, non-whitespace-delimited field type
Yonik Seeley4a8e4d246a96
diff --git a/solr/example/solr/conf/schema.xml b/solr/example/solr/conf/schema.xmlindex 7b23135365a..7e4a51b7ff3 100755--- a/solr/example/solr/conf/schema.xml+++ b/solr/example/solr/conf/schema.xml@@ -274,6 +274,16 @@</analyzer></fieldType>+ <!-- A general unstemmed text field that is better for non whitespace delimited languanges (nwd) due to autoGeneratePhraseQueries=false -->+ <fieldType name="text_nwd" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="false"> >+ <analyzer>+ <tokenizer class="solr.StandardTokenizerFactory"/>+ <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" />+ <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0"/>+ <filter class="solr.LowerCaseFilterFactory"/>+ </analyzer>+ </fieldType>+<!-- A general unstemmed text field that indexes tokens normally and alsoreversed (via ReversedWildcardFilterFactory), to enable more efficient@@ -523,6 +533,8 @@<dynamicField name="*_td" type="tdouble" indexed="true" stored="true"/><dynamicField name="*_tdt" type="tdate" indexed="true" stored="true"/>+ <dynamicField name="*_nwd" type="text_nwd" indexed="true" stored="true"/>+<dynamicField name="*_pi" type="pint" indexed="true" stored="true"/><dynamicField name="ignored_*" type="ignored" multiValued="true"/>