lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Bethard <>
Subject Re: exponential boosts
Date Thu, 23 Apr 2009 21:22:46 GMT
On 4/23/2009 1:58 PM, Doron Cohen wrote:
>> I think we are doing similar things, at least I am trying to implement
>> document boosting with pagerank. Having issues of howto appky the scoring
>> of
>> specific docs without actually reindex them. I feel something should be
>> done
>> at query time which looks at external data but do not know howto implement
>> that. Do you ?
> Have you considered CustomScoreQuery in ? It should
> allow
> incorporating external scores.

Yeah, PageRank is relatively easy to incorporate with a CustomScoreQuery
and a FieldScoreQuery. Just add a field to your index containing the
float value of your document's PageRank, and then specify that field
when you create the FieldScoreQuery that you provide to the
CustomScoreQuery constructor.

If you want to keep the PageRank scores in a separate index (that's what
I do currently), it's easy enough to combine two parallel indexes using
a ParallelReader.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message