I plan to store floats in the payload and boost the score
(multiplicatively) based on the average value of the payloads over the
occurrences of the matching term in the document. ie., exactly as in
AveragePayloadFunction in Lucene.

On Tue, Mar 17, 2015 at 2:16 AM, joergpra...@gmail.com <
joergpra...@gmail.com> wrote:

> The concrete implementation depends on what you store in the payload (e.g.
> scores)
>
> Jörg
>
> On Tue, Mar 17, 2015 at 7:01 AM, Devaraja Swami <devarajasw...@gmail.com>
> wrote:
>
>> I need to use PayloadTermQuery from Lucene.
>> Does anyone know how I can use this in ElasticSearch?
>> I am using ES 1.4.4, with the Java API.
>> In Lucene, I could use this by directly instantiating PayloadTermQuery,
>> but there are no APIs in ES QueryBuilders for this.
>> I don't need a query parser, because I can build the query directly using
>> the Java API (don't need a JSON representation of the query),
>> so I only need to be able to construct, in Java, a query builder
>> encapsulating a PayloadTermQuery.
>>
>> Thanks in advance!
>>
>> -devarajaswami
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "elasticsearch" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to elasticsearch+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/elasticsearch/8fc84082-6fc7-42aa-9caf-8ab527bc8a0b%40googlegroups.com
>> <https://groups.google.com/d/msgid/elasticsearch/8fc84082-6fc7-42aa-9caf-8ab527bc8a0b%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "elasticsearch" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elasticsearch+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFwk_Ve_OK9J%2BfsEzGwbtOnaL7%2BeqT%3DR61hCoX8Mzi-fQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFwk_Ve_OK9J%2BfsEzGwbtOnaL7%2BeqT%3DR61hCoX8Mzi-fQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CABMSir6hF%3DuM1jp0jgoBq_v30YNVB-8JLF7PLyvFjyXbdqtLvg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to