user2949345
user2949345

Reputation: 21

SOLR query with DISMAX giving empty result with code and working fine with solr admin

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

https://localhost:8983/solr/OOOOO/select?bq=country:PL^100.0&dType=dismax&defType=dismax&df=dismax&q=25392907{!boost}(%2B{!lucene+v%3D$yq})&qf=xxx_text

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=(25392907)&q={!boost}(%2B{!lucene+v%3D$yq})&bq=country:PL^100.0&defType=dismax&dType=dismax&df=dismax&qf=xxx_text

Need help on this query framing to understand more in solr.

Thanks !!

Upvotes: 0

Views: 512

Answers (1)

Dev
Dev

Reputation: 91

After solr 7.2 it doesn't support Local param {! for edismax. https://lucene.apache.org/solr/guide/8_1/major-changes-in-solr-8.html

Upvotes: 0

Related Questions