Hi,

several documents from my index contain the phrase : "PS et".
However, PS is expanded to "parti socialiste" and a phrase search for "PS et" fails.
A phrase search for "parti socialiste et" succeeds.

Can I have both queries working ?


Here's the field type :

   <fieldtype name="SyFR" class="solr.TextField">
     <analyzer type="index">
       <tokenizer class="solr.StandardTokenizerFactory"/>
       <filter class="solr.StandardFilterFactory"/>
       <!-- Synonyms -->
<filter class="solr.SynonymFilterFactory" synonyms="synonyms-fr.txt" ignoreCase="true" expand="true"/>
       <filter class="solr.LowerCaseFilterFactory"/>
<charFilter class="solr.MappingCharFilterFactory" mapping="mapping-ISOLatin1Accent.txt"/>
    </analyzer>
     <analyzer type="query">
       <tokenizer class="solr.StandardTokenizerFactory"/>
       <filter class="solr.StandardFilterFactory"/>
       <filter class="solr.LowerCaseFilterFactory"/>
<charFilter class="solr.MappingCharFilterFactory" mapping="mapping-ISOLatin1Accent.txt"/>
     </analyzer>
   </fieldtype>

Reply via email to