Posting new entries

Is it possible to create new results in lucene search results? ie.I want Lucene to give a higher score for entries that are closer to today's date.

Thank!

+1


source to share


1 answer


I've only used Lucene via Solr, but it perfectly supports arbitrary document created according to a custom function .

In your case, I would use something like:



recip(rord(created_when),1,1000,500)

      

As a boost function. I realize this doesn't answer your specific Lucene question, but if you can do it with Solr's QueryHandler, you can definitely do it in the Lucene app!

+1


source







All Articles