mirror of https://github.com/apache/lucene.git
example: first attempt at *_nwd, non-whitespace-delimited field type
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1103444 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d94c164ba3
commit
4a8e4d246a
|
@ -274,6 +274,16 @@
|
||||||
</analyzer>
|
</analyzer>
|
||||||
</fieldType>
|
</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 also
|
<!-- A general unstemmed text field that indexes tokens normally and also
|
||||||
reversed (via ReversedWildcardFilterFactory), to enable more efficient
|
reversed (via ReversedWildcardFilterFactory), to enable more efficient
|
||||||
|
@ -523,6 +533,8 @@
|
||||||
<dynamicField name="*_td" type="tdouble" indexed="true" stored="true"/>
|
<dynamicField name="*_td" type="tdouble" indexed="true" stored="true"/>
|
||||||
<dynamicField name="*_tdt" type="tdate" 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="*_pi" type="pint" indexed="true" stored="true"/>
|
||||||
|
|
||||||
<dynamicField name="ignored_*" type="ignored" multiValued="true"/>
|
<dynamicField name="ignored_*" type="ignored" multiValued="true"/>
|
||||||
|
|
Loading…
Reference in New Issue