0

I have articles indexed as documents in APACHE SOLR.

When I query SOLR with search term for example "patient access", the documents come are sorted on score by default. But my requirement is to have recent documents boosted as well if there is a document with complete phrase match in title of the content and is old document, it should appear on top as well.

I have tried using bf=recip(ms(NOW,modify_date),3.16e-11,1,1) for recent documents boosting, but I need to know how can I handle, recency as well as relevancy together.

In short if complete phrase is matched score gets more boost as well as recent documents get boost also.

Thanks.

sehe
  • 374,641
  • 47
  • 450
  • 633
Farhan Tahir
  • 2,096
  • 1
  • 14
  • 27
  • You're going to have to weight those factors against each other - look at your `debugQuery` output to see how much each term affect the score, and tune the values - for recip this is the third parameter (above the `/`). – MatsLindh Oct 10 '17 at 13:38
  • so, did you try it and it's not working for you? – Mysterion Oct 13 '17 at 07:32
  • no actually I used, my own custom score logic. which helped as requirements got a little bit changed. thought thanks a lot :) – Farhan Tahir Oct 16 '17 at 05:35

0 Answers0