Fuzzy numeric search on several fields

Hello, I need help writing a query for fuzzy numeric search. my documents have 4 numeric fields. I have 4 numbers one for each field, and I need to find documents where all 4 fields are the closest to those 4 numbers. So, this is exactly what fuzzy numeric search does, but I don't understand how to combine those 4 fields into one query. Could someone help me out?
Any help is appreciated.
thanks in advance
Eugene

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hello again,
I was trying to find the answer on my own, and the only solution I could
find is boolean query using "must":

QueryBuilders.boolQuery()

.must(QueryBuilders.fuzzyQuery("numberA", "9.567").minSimilarity(1f))

.must(QueryBuilders.fuzzyQuery("numberB", "15.822").minSimilarity(1f))

etc...

Am I on the right direction, or I should use something else?

Thank you,

Eugene

On Saturday, June 1, 2013 12:18:05 AM UTC-4, Eugene Strokin wrote:

Hello, I need help writing a query for fuzzy numeric search. my documents
have 4 numeric fields. I have 4 numbers one for each field, and I need to
find documents where all 4 fields are the closest to those 4 numbers. So,
this is exactly what fuzzy numeric search does, but I don't understand how
to combine those 4 fields into one query. Could someone help me out?
Any help is appreciated.
thanks in advance
Eugene

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.