How to add PageRank score with lucene's relevant score in sorting

2008-05-28 Thread
hi all , I have a problem that how to "combine" two score to sort the search result documents. for example I have 10 million pages in lucene index , and i know their pagerank scores. i give a query to it , every docs returned have a lucene-score, mark it as R (relevant score), and i al

Re: How to add PageRank score with lucene's relevant score in sorting

2008-05-28 Thread
gt; Document.setBoost(boost) > > "Sets a boost factor for hits on any field of this document. This > value will be multiplied into the score of all hits on this document" > > so will give you P * R rather than P + R. Should be quick, though. > > > -- > Ian. >

Re: How to add PageRank score with lucene's relevant score in sorting

2008-05-28 Thread
response time for sorting - is that for the > first sort or subsequent ones? > I believe that the first one will usually be substantially slower. > But sorting is always likely to be slower than not sorting. > > > -- > Ian. > > > On Wed, May 28, 2008 at 12:47 PM, 过佳 &

Re: How to add PageRank score with lucene's relevant score in sorting

2008-05-29 Thread
index (with the documents in the same oder as your > bigger, more static index) and then use a ParallelReader on both of > them. See: > > http://lucene.apache.org/java/2_1_0/api/org/apache/lucene/index/ParallelReader.html > > -Glen > > 2008/5/28 过佳 <[EMAIL PROTECTED]>: > &g