I use the following query to filter my data. Everything works great, untill
I want to use a price-range filter.
This range filter does not do exactly what I expect. I have a product in my
collection with the price=10. When I set the filter to gte:1 - lte:11, it
works, but gte:2 - lte:11 does not work. But the value price = 10 should
match both ranges.
10 - 10 does also give no result, but 10 - 11 does..
maybe your price field is of type string, then for strings you have "1" <
"11" < "2". Check your mapping.
My experience with range filters is that they work correctly.
Kind regards,
Florentin
Am Dienstag, 27. Mai 2014 21:55:03 UTC+2 schrieb Dan:
Hi People,
I use the following query to filter my data. Everything works great,
untill I want to use a price-range filter.
This range filter does not do exactly what I expect. I have a product in
my collection with the price=10. When I set the filter to gte:1 - lte:11,
it works, but gte:2 - lte:11 does not work. But the value price = 10 should
match both ranges.
10 - 10 does also give no result, but 10 - 11 does..
Yes, thats was the problem. I've added a mapping, thanks!
Op woensdag 28 mei 2014 09:03:40 UTC+2 schreef Florentin Zorca:
Hi,
maybe your price field is of type string, then for strings you have "1" <
"11" < "2". Check your mapping.
My experience with range filters is that they work correctly.
Kind regards,
Florentin
Am Dienstag, 27. Mai 2014 21:55:03 UTC+2 schrieb Dan:
Hi People,
I use the following query to filter my data. Everything works great,
untill I want to use a price-range filter.
This range filter does not do exactly what I expect. I have a product in
my collection with the price=10. When I set the filter to gte:1 - lte:11,
it works, but gte:2 - lte:11 does not work. But the value price = 10 should
match both ranges.
10 - 10 does also give no result, but 10 - 11 does..
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.