Is it possible to bubble up newer records in lucene search results?
ie.I want Lucene to give a higher score to records which are closer to today's date.
Thanks!
lucene
Is it possible to bubble up newer records in lucene search results?
ie.I want Lucene to give a higher score to records which are closer to today's date.
Thanks!
Best Answer
I have only used Lucene through Solr, but it has great support arbitrary document boosted according to a user-supplied function.
In your case, I'd use something like:
As a boost function. I realise this doesn't answer your specifically Lucene question, but if you can do it with a Solr QueryHandler, you can definitely do it in a Lucene app!