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.
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
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
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
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