Hi,

I think synonym_edismax is not part of solr.
Can you re-produce with the stock edismax?



On Monday, June 20, 2016 12:34 PM, preeti kumari <preeti.bg...@gmail.com> wrote:



Hi All,

My query looks like below :

q=((_query_:"{!synonym_edismax  qf='partnum' v='597871' bq='' mm=100
synonyms=true synonyms.constructPhrases=true
synonyms.ignoreQueryOperators=true}") OR (partnumcomp:597871* OR
partnum:"597871"~4 OR ngramc:"597 978 787 871"~4 OR partnumngramc:"597 978
787 871"~4 OR content:"597871"~500) AND (mocode:5S3 OR mocode:A01 ))

*numFound=0 by above query although i have data for " ngramc:"597 978 787
871"~4 OR partnumngramc:"597 978 787 871"~4 OR content:"597871"~500"*

When i checked for the parsed query looks like below and i could see the
proximity parameter "*~4*" is not passed to parsed query and so no results:

<str name="parsedquery">+(((+DisjunctionMaxQuery((partnum:597871))
())/no_coord) partnumcomp:597871* partnum:597871 PhraseQuery(ngramc:"597
978 787 871") PhraseQuery(partnumngramc:"597 978 787 871") content:597871)
+(mocode:5s3 mocode:a01)</str>


<str name="parsedquery_toString">+((+(partnum:597871) ())
partnumcomp:597871* partnum:597871 ngramc:"597 978 787 871"
partnumngramc:"597 978 787 871" content:597871) +(mocode:5s3
mocode:a01)</str>

Please do let me know why the proximity parameter is not getting sent in
parsed query to solr. How to fix this. Is something wrong with the query?

Although repharasing the query to below works :

q=((partnumcomp:597871* OR partnum:"597871"~4 OR ngramc:"597 978 787 871"~4
OR partnumngramc:"597 978 787 871"~4 OR content:"597871"~500) AND
(mocode:5S3 OR mocode:A01 ) OR (_query_:"{!synonym_edismax  qf='partnum'
v='597871' bq='' mm=100 synonyms=true synonyms.constructPhrases=true
synonyms.ignoreQueryOperators=true}"))


Thanks
Preeti

Reply via email to