I'm trying to figure out the best way to check for equality on a numeric
field in a filter. (I'm using a custom_filters_score query, and I want to
boost documents by a specific amount if they have a certain value in a
certain numeric field)
There's a 'match' query, but no 'match' filter, at least according to the
docs.
Do I have to use numeric_range, and just set the 'from' and the 'to'
accordingly?
Thanks,
Dan
On Wednesday, December 5, 2012 6:12:57 PM UTC-5, Daniel Weitzenfeld wrote:
I'm trying to figure out the best way to check for equality on a numeric
field in a filter. (I'm using a custom_filters_score query, and I want to
boost documents by a specific amount if they have a certain value in a
certain numeric field)
There's a 'match' query, but no 'match' filter, at least according to the
docs.
Do I have to use numeric_range, and just set the 'from' and the 'to'
accordingly?
Thanks,
Dan
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.