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 o.a.l.search.function ? 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. Steve --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org