Skip to Content
0
Sep 11, 2020 at 08:12 AM

SOLR Issues With DISMAX

271 Views Last edit Sep 24, 2020 at 05:29 AM 2 rev

Hello,

I'm trying to query certain fields using "DISMAX Query Parser" , so the query is like below,

bq=country:AU^100.0&defType=dismax&df=dismax&q.alt=((name_text:xxx^500.0)OR(firstName_text:xxx^500.0)) which is working fine in Solr Admin console but when trying to write logic via code and execute it the result is empty.

The query framed in code level,

yq=:()&q={!boost}(%2B{!lucene+v%3D$yq})&fq=(yyy_text:(*:*+AND+!INACTIVE))&sort=score+desc☆t=0&rows=10&facet.sort=count&facet.mincount=1&facet.limit=50&fl=score,*&bq=country:AU^100.0&defType=dismax&df=dismax&q.alt=((name_text:xxx^500.0)OR(firstName_text:xxx^500.0))

Need help on this query framing to understand more.