Hi,
This might be known issue, but I cannot find a reference for this specific case 
- searching for exact query with synonyms and stopwords.

I have a simple configuration for catch-all field:

    <fieldType name="text_test" class="solr.TextField" 
positionIncrementGap="100" autoGeneratePhraseQueries="true">
      <analyzer type="index">
       <tokenizer class="solr.StandardTokenizerFactory"/>
        <filter class="solr.StopFilterFactory" ignoreCase="true" 
words="stopwords.txt"/>
        <filter class="solr.LowerCaseFilterFactory"/>
      </analyzer>
      <analyzer type="query">
        <tokenizer class="solr.StandardTokenizerFactory"/>
        <filter class="solr.SynonymGraphFilterFactory" synonyms="synonyms.txt" 
ignoreCase="true" expand="true"/>
        <filter class="solr.StopFilterFactory" ignoreCase="true" 
words="stopwords.txt"/>
        <filter class="solr.LowerCaseFilterFactory"/>
      </analyzer>
    </fieldType>

The synonyms.txt file has only one line:
expand,blow up

The stopwords.txt file has only one line:
the

There is only one document:
{
   "id":"1",
    "title":"to expand the methods for mailing cancellation"
}

Everything else is default basic configuaration. Tested with Solr 6.5.1 and 
Solr 8.5.2.

The basic query q=expand the methods   <<< finds the document,
the query (in quotes) q="expand the methods"   <<< cannot find the document

Am I doing something wrong, or is it known bug (I saw similar issues discussed 
in the past, but not for exact match query) and if yes - what is the Jira for 
it?

Best Regards,
Vadim Permakoff


________________________________

This email is intended solely for the recipient. It may contain privileged, 
proprietary or confidential information or material. If you are not the 
intended recipient, please delete this email and any attachments and notify the 
sender of the error.

Reply via email to