kiruba_2
(kiruba-2)
November 23, 2012, 6:05am
1
Hi all,
how to write java code for the following json.
{
},*
} },*
"boost" : "2"*
}*
],*
"score_mode" : "first"*
}*
}
thanks,
--
Igor_Motov
(Igor Motov)
November 24, 2012, 12:47am
2
Take a look at CustomScoreSearchTests.testCustomFiltersScore()https://github.com/elasticsearch/elasticsearch/blob/master/src/test/java/org/elasticsearch/test/integration/search/customscore/CustomScoreSearchTests.java#L263 test. The example there is using termFilter(), which you will need to
replace with rangeFilter(). You can find an example of how to build
rangeFilter() in the
SimpleIndexQueryParserTests.testRangeFilteredQueryBuilder()https://github.com/elasticsearch/elasticsearch/blob/master/src/test/java/org/elasticsearch/test/unit/index/query/SimpleIndexQueryParserTests.java#L709
test.
On Friday, November 23, 2012 1:05:30 AM UTC-5, karan.r wrote:
Hi all,
how to write java code for the following json.
{
} },*
20} } },*
"boost" : "2"*
}*
],*
"score_mode" : "first"*
}*
}
thanks,
--
kiruba_2
(kiruba-2)
November 26, 2012, 5:53am
3
thanks motov.
On Saturday, November 24, 2012 6:17:46 AM UTC+5:30, Igor Motov wrote:
Take a look at CustomScoreSearchTests.testCustomFiltersScore()https://github.com/elasticsearch/elasticsearch/blob/master/src/test/java/org/elasticsearch/test/integration/search/customscore/CustomScoreSearchTests.java#L263 test. The example there is using termFilter(), which you will need to
replace with rangeFilter(). You can find an example of how to build
rangeFilter() in the
SimpleIndexQueryParserTests.testRangeFilteredQueryBuilder()https://github.com/elasticsearch/elasticsearch/blob/master/src/test/java/org/elasticsearch/test/unit/index/query/SimpleIndexQueryParserTests.java#L709
test.
On Friday, November 23, 2012 1:05:30 AM UTC-5, karan.r wrote:
Hi all,
how to write java code for the following json.
{
10} } },*
20} } },*
"boost" : "2"*
}*
],*
"score_mode" : "first"*
}*
}
thanks,
--