lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: Custom Similarity
Date Thu, 08 Feb 2018 17:03:23 GMT
As of Solr 6.6, payload support has been added to Solr, see:
SOLR-1485. Before that, it was much more difficult, see:
https://lucidworks.com/2014/06/13/end-to-end-payload-example-in-solr/

Best,
Erick

On Thu, Feb 8, 2018 at 8:36 AM, Ahmet Arslan <iorixxx@yahoo.com.invalid> wrote:
>
>
> Hi Roy,
>
>
> In order to activate payloads during scoring, you need to do two separate things at the
same time:
> * use a payload aware query type: org.apache.lucene.queries.payloads.*
> * use payload aware similarity
>
> Here is an old post that might inspire you :  https://lucidworks.com/2009/08/05/getting-started-with-payloads/
>
>
> Ahmet
>
>
>
> On Saturday, January 27, 2018, 5:43:36 PM GMT+3, Dwaipayan Roy <dwaipayan.roy@gmail.com>
wrote:
>
>
>
>
>
> Thanks for your replies. But still, I am not sure about the way to do the
> thing. Can you please provide me with an example code snippet or, link to
> some page where I can find one?
>
> Thanks..
>
> On Tue, Jan 16, 2018 at 3:28 PM, Dwaipayan Roy <dwaipayan.roy@gmail.com>
> wrote:
>
>> I want to make a scoring function that will score the documents by the
>> following function:
>> given Q = {q1, q2, ... }
>> score(D,Q) =
>>    for all qi:
>>      SUM of {
>>          LOG { weight_1(qi) + weight_2(qi) + weight_3(qi) }
>>      }
>>
>> I have stored weight_1, weight_2 and weight_3 for all term of all
>> documents as payload, with payload delimiter = | (pipe) during indexing.
>>
>> However, I am not sure on how to integrate all the weights during
>> retrieval. I am sure that I have to @Override some score() but not sure
>> about the exact class.
>>
>> Please help me here.
>>
>> Best,
>> Dwaipayan..
>
>>
>>
>
>
> --
> Dwaipayan Roy.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message