Synonyms Problem - Apach Solr

It works (if in synonyms_index.txt): 

usa => united states of america

 

It does NOT work (if in synonyms_query.txt): 

usa => united states of america

 

My config file (schema_extra_types.xml):

<fieldType name="text" class="solr.TextField">
  <analyzer type="index">
	...
    <filter class="solr.SynonymGraphFilterFactory" ignoreCase="true" synonyms="synonyms_index.txt" expand="true"/>
  </analyzer>
  <analyzer type="query">
	...
    <filter class="solr.SynonymGraphFilterFactory" ignoreCase="true" synonyms="synonyms_query.txt" expand="true"/>
  </analyzer>
</fieldType>

 

Solution?

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Suche

Neueste Kommentare