To boost a document with DIH, see this section about "$docBoost" in the wiki 
here:  http://wiki.apache.org/solr/DataImportHandler#Special_Commands.

If you're using a RDBMS for source data, your query would have something like 
this in it: "select PAGE_RANK as '$docBoost', ... from ... etc"

If you don't want to boost entire documents but have it be very flexible at 
query time, see the page on Extended Dismax, especially the boost function 
section:  
http://wiki.apache.org/solr/ExtendedDisMax?highlight=%28edismax%29#bf_.28Boost_Function.2C_additive.29
 .  Also, the Packt Solr book (Smiley&Pugh) has a nice section about boosting 
scores based on page-rank or popularity type fields.  In the old first edition 
its chapter 5, "enhanced searching".

James Dyer
E-Commerce Systems
Ingram Content Group
(615) 213-4311


-----Original Message-----
From: Gora Mohanty [mailto:g...@mimirtech.com] 
Sent: Tuesday, June 12, 2012 4:54 AM
To: solr-user@lucene.apache.org
Subject: Re: PageRanking with DIH

On 12 June 2012 13:51, vineet yadav <vineet.yadav.i...@gmail.com> wrote:
> Hi Gora,
> Thanks for reply.
> I have computed pagerank offline for document set dump.  I ideally
> want to use pagerank and solr relevency score together in formula to
> sort search solr result.  I have already looked at
> http://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_increase_the_score_for_specific_documents
> and found that indextimeboost is useful. I want to know how can I use
> indextimeboost ?
[...]

That depends on how you are indexing data into Solr.
That page explains how to do index-time boosting at
record level, and field level for XML documents uploaded
to Solr with post.sh.

If you are using the Solr DataImportHandler, you can boost
records, but not individual fields, as far as I am aware. Please
take a look at this thread for an example:
http://lucene.472066.n3.nabble.com/Index-time-boosting-with-DIH-td3206271.html

It would help if you did some basic groundwork, tried out things
for yourselves, and asked more specific questions. You might
wish to read http://wiki.apache.org/solr/UsingMailingLists

Regards,
Gora

Reply via email to