lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Almas1997 <amask...@gmail.com>
Subject Re: Improving relevance by document date
Date Mon, 01 Feb 2010 08:37:05 GMT

Thank you.

However just found more useful approach using CustomScoreQuery.


Ted Dunning wrote:
> 
> Don't set a document boost.  Just add a date range to all queries.
> 
> On Fri, Jan 29, 2010 at 9:56 AM, Almas1997 <amaskaev@gmail.com> wrote:
> 
>>
>> Hi all,
>>
>> I have the following problem. My lucene index contains documents with
>> fields
>> Text and CreatedDate.
>> I'd like to have document search results sorted by relevance but also
>> wants
>> to show newest documents first within reasonable limits.
>>
>> I can create sorting by relevance and then by date, but this approach
>> provide too rough results, because even the oldest documents with higher
>> rank will come first. I'd like to have more elegant solution.
>>
>> It seems that i should include document date to scoring formula to get
>> more
>> rank to the newer documents. Probably I can set document boost based on
>> date, so newest documents will have bigger boost value. But i'm not sure
>> is
>> this variant correct.
>>
>> Maybe someone can suggest more correct approach?
>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Improving-relevance-by-document-date-tp27375856p27375856.html
>> Sent from the Lucene - General mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Ted Dunning, CTO
> DeepDyve
> 
> 

-- 
View this message in context: http://old.nabble.com/Improving-relevance-by-document-date-tp27375856p27401068.html
Sent from the Lucene - General mailing list archive at Nabble.com.


Mime
View raw message