lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ali Nazemian <alinazem...@gmail.com>
Subject Re: boosting words from specific list
Date Tue, 30 Sep 2014 15:37:23 GMT
Dear Koji,
Hi,
Thank you very much.
Do you know any example code for UpdateRequestProcessor? Anything would be
appreciated.
Best regards.

On Tue, Sep 30, 2014 at 3:41 AM, Koji Sekiguchi <koji@r.email.ne.jp> wrote:

> Hi Ali,
>
> I don't think Solr has such function OOTB. One way I can think of is that
> you can implement UpdateRequestProcessor. In processAdd() method of
> the UpdateRequestProcessor, as you can read field values, you can calculate
> the total score and copy the total score to a field e.g. total_score.
> Then you can sort the query result on total_score field when you query.
>
> Koji
> --
> http://soleami.com/blog/comparing-document-classification-functions-of-
> lucene-and-mahout.html
>
>
> (2014/09/29 4:25), Ali Nazemian wrote:
>
>> Dear all,
>> Hi,
>> I was wondering how can I implement solr boosting words from specific list
>> of important words? I mean I want to have a list of important words and
>> tell solr to score documents based on the weighted sum of these words. For
>> example let word "school" has weight of 2 and word "president" has the
>> weight of 5. In this case a doc with 2 "school" words and 3 "president"
>> words will has the total score of 19! I want to sort documents based on
>> this score. How such procedure is possible in solr? Thank you very much.
>> Best regards.
>>
>>
>
>
>


-- 
A.Nazemian

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message