Configured field type for russian
This commit is contained in:
parent
f52242b5d5
commit
74665136ea
2 changed files with 15 additions and 3 deletions
|
@ -145,7 +145,7 @@
|
||||||
<field name="indexedTime" type="long" indexed="true" stored="true"/>
|
<field name="indexedTime" type="long" indexed="true" stored="true"/>
|
||||||
<field name="NAME_PHONETIC" type ="phonetic" indexed="true" stored="false" multiValued="true"/>
|
<field name="NAME_PHONETIC" type ="phonetic" indexed="true" stored="false" multiValued="true"/>
|
||||||
|
|
||||||
<field name="ALLTEXT" type="text" indexed="true" stored="true" multiValued="true"/>
|
<field name="ALLTEXT" type="text_ru_iph" indexed="true" stored="true" multiValued="true"/>
|
||||||
<field name="ALLTEXTUNSTEMMED" type="textgen" indexed="true" stored="false" multiValued="true"/>
|
<field name="ALLTEXTUNSTEMMED" type="textgen" indexed="true" stored="false" multiValued="true"/>
|
||||||
|
|
||||||
<field name="THUMBNAIL" type="string" indexed="true" stored="true"/>
|
<field name="THUMBNAIL" type="string" indexed="true" stored="true"/>
|
||||||
|
@ -1300,6 +1300,18 @@
|
||||||
</analyzer>
|
</analyzer>
|
||||||
</fieldType>
|
</fieldType>
|
||||||
|
|
||||||
|
<fieldType name="text_ru_iph" class="solr.TextField" positionIncrementGap="100">
|
||||||
|
<charFilter class="solr.HTMLStripCharFilterFactory"/>
|
||||||
|
<analyzer>
|
||||||
|
<tokenizer class="solr.StandardTokenizerFactory"/>
|
||||||
|
<filter class="solr.LowerCaseFilterFactory"/>
|
||||||
|
<filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_ru.txt" format="snowball" />
|
||||||
|
<filter class="solr.SnowballPorterFilterFactory" language="Russian"/>
|
||||||
|
<!-- less aggressive: <filter class="solr.RussianLightStemFilterFactory"/> -->
|
||||||
|
</analyzer>
|
||||||
|
</fieldType>
|
||||||
|
|
||||||
|
|
||||||
<!-- Swedish -->
|
<!-- Swedish -->
|
||||||
<fieldType name="text_sv" class="solr.TextField" positionIncrementGap="100">
|
<fieldType name="text_sv" class="solr.TextField" positionIncrementGap="100">
|
||||||
<analyzer>
|
<analyzer>
|
||||||
|
|
|
@ -742,7 +742,7 @@
|
||||||
<str name="hl.simple.post"><![CDATA[</strong>]]></str>
|
<str name="hl.simple.post"><![CDATA[</strong>]]></str>
|
||||||
<!-- Default value of mm is 100% which should result in AND behavior, still setting it here
|
<!-- Default value of mm is 100% which should result in AND behavior, still setting it here
|
||||||
https://cwiki.apache.org/confluence/display/solr/The+DisMax+Query+Parser -->
|
https://cwiki.apache.org/confluence/display/solr/The+DisMax+Query+Parser -->
|
||||||
<str name="mm">100%</str>
|
<str name="mm">1</str>
|
||||||
</lst>
|
</lst>
|
||||||
<!-- Defaults from 4.7 solrconfig commented out below, df is for overriding the default field in schema.xml, http://wiki.apache.org/solr/SearchHandler#df -->
|
<!-- Defaults from 4.7 solrconfig commented out below, df is for overriding the default field in schema.xml, http://wiki.apache.org/solr/SearchHandler#df -->
|
||||||
<!-- lst name="defaults">
|
<!-- lst name="defaults">
|
||||||
|
|
Loading…
Add table
Reference in a new issue