I have build a query using java FunctionScoreQueryBuilder Elasticsearch Platform — Find real-time answers at scale | Elastic
and was wondering if it possible to create a conditional scoring to the
field? For example if the field exists and count = 1, apply factionFunction
of 1.0f . And if the field existsa nd count = 2, then apply factionFunction
of 2.0f , etc etc.
Thanks Jörg although we are using es version 0.90.7 and the project using
es version 1.2.1. Not sure if it support.
Anyway, I achieve similar behaviour by using range filter (from 0 to less
than or equal to 1, then boost 10f for example.) and passed that
to FunctionScoreQueryBuilder.
Jason
On Saturday, January 10, 2015 at 12:14:58 AM UTC+8, Jörg Prante wrote:
On Fri, Jan 9, 2015 at 11:38 AM, Jason Wee <peic...@gmail.com
<javascript:>> wrote:
Hi,
I have build a query using java FunctionScoreQueryBuilder Elasticsearch Platform — Find real-time answers at scale | Elastic
and was wondering if it possible to create a conditional scoring to the
field? For example if the field exists and count = 1, apply factionFunction
of 1.0f . And if the field existsa nd count = 2, then apply factionFunction
of 2.0f , etc etc.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.