Hello,

I've installed Solr 7.6.0 with the following field definition:
<field name="text_en" type="text_en" indexed="true" stored="true" 
multiValued="true" />

<fieldType name="text_en" class="solr.TextField" positionIncrementGap="100">
      <analyzer type="index">
        <tokenizer class="solr.StandardTokenizerFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>
        <filter class="solr.CommonGramsFilterFactory" 
words="lang/stopwords_en.txt" ignoreCase="true"/>
        <filter class="solr.StopFilterFactory" ignoreCase="true"  
words="lang/stopwords_en.txt"/>
        <filter class="solr.EnglishPossessiveFilterFactory"/>
        <filter class="solr.KeywordMarkerFilterFactory" 
protected="protwords.txt"/>
      </analyzer>
      <analyzer type="query">
        <tokenizer class="solr.StandardTokenizerFactory"/>
        <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" 
ignoreCase="true" expand="true"/>
        <filter class="solr.LowerCaseFilterFactory"/>
        <filter class="solr.CommonGramsFilterFactory" 
words="lang/stopwords_en.txt" ignoreCase="true"/>
        <filter class="solr.StopFilterFactory" ignoreCase="true"  
words="lang/stopwords_en.txt"/>
        <filter class="solr.EnglishPossessiveFilterFactory"/>
        <filter class="solr.KeywordMarkerFilterFactory" 
protected="protwords.txt"/>
      </analyzer>
    </fieldType>

My stopwords_en.txt contains (among others) the words: it, will (synonyms and 
protwords are empty).
I inserted a document with "I will think about it." In field "text_en".
When I try to perform a phrase query i.e. text_en:"I will think about it" I get 
no results.
The output of debugQuery:
    "rawquerystring":"text_en:\"I will think about it\"",
    "querystring":"text_en:\"I will think about it\"",
    "parsedquery":"SpanNearQuery(spanNear([spanOr([spanNear([text_en:i, 
text_en:will_think], 0, true), spanNear([text_en:i_will, text_en:think], 0, 
true)]), text_en:about_it], 0, true))",
...
Oddly, text_en:" I will think think about it" does find it.
I compared it to 6.2.1 (in which it does work) and saw that a different 
component is used:
"rawquerystring":"text_en:\"I will think about it\"",
    "querystring":"text_en:\"I will think about it\"",
    "parsedquery":"MultiPhraseQuery(text_en:\"(i i_will) will_think think 
(about about_it)\")",
...

Any ideas?

Thanks,
Ronen.


This electronic message may contain proprietary and confidential information of 
Verint Systems Inc., its affiliates and/or subsidiaries. The information is 
intended to be for the use of the individual(s) or entity(ies) named above. If 
you are not the intended recipient (or authorized to receive this e-mail for 
the intended recipient), you may not use, copy, disclose or distribute to 
anyone this message or any information contained in this message. If you have 
received this electronic message in error, please notify us by replying to this 
e-mail.

Reply via email to