0

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 !!

2
  • .. but there's a completely different query in your other example? (i.e. the boost/lucene/etc. in q). What are you trying to achieve? Commented Sep 15, 2020 at 12:02
  • @MatsLindh : updated the query. The first one when we hit in browser url itself we are getting the solr response, but when framed via code logic, the query framed from Hybris is second query. Both the query parameters are same, but we are getting empty resultset. Commented Sep 15, 2020 at 13:29

1 Answer 1

0

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.