I guess you are using a not so recent version of elasticsearch then. Which
version are you working on?


On Thu, Jan 16, 2014 at 2:21 PM, Mukul Gupta <mukulnit...@gmail.com> wrote:

> I tried using FunctionScoreQueryBuilders but there is no such thing
> available with me. Do I need to use any package for this ?
>
>
> On Thu, Jan 16, 2014 at 6:26 PM, Luca Cavanna <cavannal...@gmail.com>wrote:
>
>> Not sure what you mean, the function score is a query that is part of the
>> query DSL. If you are using the java API, you can find the usual query
>> builder, called FunctionScoreQueryBuilder or even use the handy
>> QueryBuilders static methods to create one.
>>
>>
>> On Thu, Jan 16, 2014 at 1:43 PM, Mukul Gupta <mukulnit...@gmail.com>wrote:
>>
>>> Is there any java api available for function_score ?
>>>
>>>
>>> On Thu, Jan 16, 2014 at 5:16 PM, Luca Cavanna <cavannal...@gmail.com>wrote:
>>>
>>>> Using the function_score you could use a script. Since 0.90.10 you can
>>>> access term statistics from a script (
>>>> https://github.com/elasticsearch/elasticsearch/issues/3772), term
>>>> frequency included. You could for instance emit your own score that takes
>>>> into account only the term frequency but not the idf.
>>>>
>>>>
>>>> On Thursday, January 16, 2014 9:18:57 AM UTC+1, Jörg Prante wrote:
>>>>>
>>>>> I don't know how to do this by function score, but have you looked at
>>>>> it?
>>>>>
>>>>> Jörg
>>>>>
>>>>>  --
>>>> 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/1db8d628-dddd-4150-a2bd-64fcd7839cd0%40googlegroups.com
>>>> .
>>>>
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>>  --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "elasticsearch" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/elasticsearch/1tB6yB0m10o/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> elasticsearch+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/elasticsearch/CAAVTvp6rZ3yrTL8RMTpzS78-W_GKb7Oj2nED7jTiTfWEzw9amg%40mail.gmail.com
>>> .
>>>
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>  --
>> 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/CADdZ9MWh0f49t5ek9aaKA5AeEgaJEsfwc4XAqaqB5Cbibc0vig%40mail.gmail.com
>> .
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "elasticsearch" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/elasticsearch/1tB6yB0m10o/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> elasticsearch+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/CAAVTvp7t6P16U0bb1DP0%2Bz%3DgS6dBjMfpCpbNw5WSmeXSHsYCHQ%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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/CADdZ9MVNbuqDw%3DDHbvzprLvhM%2BT-UWFQwaLm1bX-qsgTzVzf4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to