mirror of https://github.com/apache/lucene.git
upgrade solr, leverage new property substitution feature, adjusted basic tokenization settings
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@508697 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
72ef071e96
commit
5d96061ff1
|
@ -133,33 +133,16 @@
|
||||||
</analyzer>
|
</analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
|
|
||||||
<!-- A text field that uses WordDelimiterFilter to enable splitting and matching of
|
|
||||||
words on case-change, alpha numeric boundaries, and non-alphanumeric chars,
|
|
||||||
so that a query of "wifi" or "wi fi" could match a document containing "Wi-Fi".
|
|
||||||
Synonyms and stopwords are customized by external files, and stemming is enabled.
|
|
||||||
Duplicate tokens at the same position (which may result from Stemmed Synonyms or
|
|
||||||
WordDelim parts) are removed.
|
|
||||||
-->
|
|
||||||
<fieldtype name="text" class="solr.TextField" positionIncrementGap="100">
|
<fieldtype name="text" class="solr.TextField" positionIncrementGap="100">
|
||||||
<analyzer type="index">
|
<analyzer type="index">
|
||||||
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
<tokenizer class="solr.StandardTokenizerFactory"/>
|
||||||
<!-- in this example, we will only use synonyms at query time
|
<filter class="solr.StandardFilterFactory"/>
|
||||||
<filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
|
|
||||||
-->
|
|
||||||
<filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>
|
|
||||||
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
|
|
||||||
<filter class="solr.LowerCaseFilterFactory"/>
|
<filter class="solr.LowerCaseFilterFactory"/>
|
||||||
<filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>
|
|
||||||
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
|
|
||||||
</analyzer>
|
</analyzer>
|
||||||
<analyzer type="query">
|
<analyzer type="query">
|
||||||
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
<tokenizer class="solr.StandardTokenizerFactory"/>
|
||||||
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
|
<filter class="solr.StandardFilterFactory"/>
|
||||||
<filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>
|
|
||||||
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0"/>
|
|
||||||
<filter class="solr.LowerCaseFilterFactory"/>
|
<filter class="solr.LowerCaseFilterFactory"/>
|
||||||
<filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>
|
|
||||||
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
|
|
||||||
</analyzer>
|
</analyzer>
|
||||||
</fieldtype>
|
</fieldtype>
|
||||||
|
|
||||||
|
|
|
@ -21,9 +21,7 @@
|
||||||
<!-- Used to specify an alternate directory to hold all index data
|
<!-- Used to specify an alternate directory to hold all index data
|
||||||
other than the default ./data under the Solr home.
|
other than the default ./data under the Solr home.
|
||||||
If replication is in use, this should match the replication configuration. -->
|
If replication is in use, this should match the replication configuration. -->
|
||||||
<!--
|
<dataDir>${solr.data.dir:./solr/data}</dataDir>
|
||||||
<dataDir>./solr/data</dataDir>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<indexDefaults>
|
<indexDefaults>
|
||||||
<!-- Values here affect all index writers and act as a default unless overridden. -->
|
<!-- Values here affect all index writers and act as a default unless overridden. -->
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue