Configured field type for russian

This commit is contained in:
Georgy Litvinov 2020-07-09 09:28:42 +02:00
parent f52242b5d5
commit 74665136ea
2 changed files with 15 additions and 3 deletions

View file

@ -145,7 +145,7 @@
<field name="indexedTime" type="long" indexed="true" stored="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="THUMBNAIL" type="string" indexed="true" stored="true"/>
@ -1299,6 +1299,18 @@
<!-- less aggressive: <filter class="solr.RussianLightStemFilterFactory"/> -->
</analyzer>
</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 -->
<fieldType name="text_sv" class="solr.TextField" positionIncrementGap="100">

View file

@ -742,7 +742,7 @@
<str name="hl.simple.post"><![CDATA[</strong>]]></str>
<!-- 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 -->
<str name="mm">100%</str>
<str name="mm">1</str>
</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 -->
<!-- lst name="defaults">
@ -1649,4 +1649,4 @@
<str name="fvCacheName">QUERY_DOC_FV</str>
</transformer>
</config>
</config>