Re: elasticsearch Java API for function_score query

2014-09-10 Thread mramaprasad
It worked. Thank you Ivan. On Tuesday, September 9, 2014 7:33:58 PM UTC-7, Ivan Brusic wrote: Malini, I would suggest starting a new thread instead of adding to an old one. I find the Java API for the boost functions to be confusing, or at least, not as clean as the rest of the Java API.

Re: elasticsearch Java API for function_score query

2014-09-09 Thread Ivan Brusic
Malini, I would suggest starting a new thread instead of adding to an old one. I find the Java API for the boost functions to be confusing, or at least, not as clean as the rest of the Java API. I wonder if the Elasticsearch team would accept a PR. Jörg's example above could be used as a skeleton

Re: elasticsearch Java API for function_score query

2014-06-12 Thread Jayanth Inakollu
Thanks a lot!! It works!! On Wednesday, June 11, 2014 2:09:57 AM UTC+5:30, Jörg Prante wrote: Try this import org.elasticsearch.action.search.SearchRequest; import org.elasticsearch.index.query.functionscore.FunctionScoreQueryBuilder; import java.util.Arrays; import static

elasticsearch Java API for function_score query

2014-06-10 Thread Jayanth Inakollu
I need to implement the below function_score query using Java APIs. I couldn't find any official documentation for function_score query in the Java API section of elasticsearch function_score: { functions: [ { boost_factor: 3, filter: { terms

Re: elasticsearch Java API for function_score query

2014-06-10 Thread joergpra...@gmail.com
Try this import org.elasticsearch.action.search.SearchRequest; import org.elasticsearch.index.query.functionscore.FunctionScoreQueryBuilder; import java.util.Arrays; import static org.elasticsearch.client.Requests.searchRequest; import static