Hi All,

And stopword  in user query is being changed to q.op=AND, i am going to
look more into this
i thought of sharing this in solr community just in-case if someone have
came across this issue.
OR
I will also be validating my config and schema if i am doing something
wrong.

solr : 4.9
query parser: edismax

when i search for "*q=derek and romace*" final parsed query is
*"(+(+DisjunctionMaxQuery((textSpell:derek))
+DisjunctionMaxQuery((textSpell:romance))))/no_coord" *
*
  "response":{"numFound":0,"start":0,"maxScore":0.0,"docs":[]*

when i search for "*q=derek romace*" final parsed query is *"parsedquery":
"(+(DisjunctionMaxQuery((textSpell:derek))
DisjunctionMaxQuery((textSpell:romance))))/no_coord",*
*                            response": {*
*                            "numFound": 1405,*
*                            "start": 0,*
*                            "maxScore": 0.2780709,*
*                            "docs": [.............*

textSpell field definition :

<field name="textSpell" type="text_general" indexed="true" stored="false"
omitNorms="true" multiValued="true" />

<fieldType name="text_general" class="solr.TextField"
positionIncrementGap="100">
      <analyzer type="index">
        <tokenizer class="solr.ClassicTokenizerFactory"/>
        <filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt" />
        <filter class="solr.LowerCaseFilterFactory"/>
        <filter class="solr.KeywordMarkerFilterFactory"
protected="protwords.txt"/>
      </analyzer>
      <analyzer type="query">
        <tokenizer class="solr.ClassicTokenizerFactory"/>
        <filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt" />
        <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
ignoreCase="true" expand="false"  />
        <filter class="solr.LowerCaseFilterFactory"/>
        <filter class="solr.KeywordMarkerFilterFactory"
protected="protwords.txt"/>
      </analyzer>
    </fieldType>

Let me know if anyone of you guys need more info.

*Thanks,*
*Rajesh**.*

Reply via email to