Solrj Query - Get the most relevant record first

前端 未结 2 2058
清酒与你
清酒与你 2021-01-06 22:48

I have some documents in Solr 4.0. I want the most relevant records to be displayed first and then the less relevant ones.

For eg, I have 3 documents wi

2条回答
  •  长情又很酷
    2021-01-06 23:07

    I tried with "" around the query string and it worked.

    Like - q=title:"Income Distribution Policy" OR title:Income Distribution Policy.

    This gave me the output as document 1 then document 3 and then document 2. Not perfect but close enough.

提交回复
热议问题