Re: payload similarity

2015-04-25 Thread Dmitry Kan
Erick, That's a neat example. Thanks! Btw, noticed, that luke can decode the payloads quite well. Extra goody under debugger's belt. Regards, Dmitry On Fri, Apr 24, 2015 at 9:22 PM, Erick Erickson wrote: > I put up a complete example not too long ago that may help, see: > > http://lucidworks.c

Re: payload similarity

2015-04-24 Thread Erick Erickson
I put up a complete example not too long ago that may help, see: http://lucidworks.com/blog/end-to-end-payload-example-in-solr/ Best, Erick On Fri, Apr 24, 2015 at 6:33 AM, Dmitry Kan wrote: > Ahmet, exactly. As I have just illustrated with code, simultaneously with > your reply. Thanks! > > On

Re: payload similarity

2015-04-24 Thread Dmitry Kan
Ahmet, exactly. As I have just illustrated with code, simultaneously with your reply. Thanks! On Fri, Apr 24, 2015 at 4:30 PM, Ahmet Arslan wrote: > Hi Dmitry, > > I think, it is activated by PayloadTermQuery. > > Ahmet > > > > On Friday, April 24, 2015 2:51 PM, Dmitry Kan > wrote: > Hi, > > >

Re: payload similarity

2015-04-24 Thread Dmitry Kan
Answering my own question: in order to account for payloads, PayloadTermQuery should be used instead of TermQuery: PayloadTermQuery payloadTermQuery = new PayloadTermQuery(new Term("body", "dogs"), new MaxPayloadFunction()); Then in the query explanation we get: --- Results for body:dog

Re: payload similarity

2015-04-24 Thread Ahmet Arslan
Hi Dmitry, I think, it is activated by PayloadTermQuery. Ahmet On Friday, April 24, 2015 2:51 PM, Dmitry Kan wrote: Hi, Using the approach here http://lucidworks.com/blog/getting-started-with-payloads/ I have implemented my own PayloadSimilarity class. When debugging the code I have noticed