Hi all. Is it possible to get range facets without directly indicating
from/to ranges?
I have an index with products, and prices are too spread. For example some
category of products have costs around 5000 and others around 100000 or
150000. Thus, I don't know, which queries will give me exact ranges and
which will give me only one range with counts, i.e. all results in range
from 0 to 1000, and zero for others.
One way is to query statistical facet for min/max, and then make another
query with range (slices from min to max), but i don't like it.
Any ideas, please?
I have a similar scenario, did you come up with any good solutions?
On Friday, September 14, 2012 9:40:15 AM UTC+3, Rauan Maemirov wrote:
Hi all. Is it possible to get range facets without directly indicating
from/to ranges?
I have an index with products, and prices are too spread. For example some
category of products have costs around 5000 and others around 100000 or
150000. Thus, I don't know, which queries will give me exact ranges and
which will give me only one range with counts, i.e. all results in range
from 0 to 1000, and zero for others.
One way is to query statistical facet for min/max, and then make another
query with range (slices from min to max), but i don't like it.
Any ideas, please?
Earlier this week I came across an almost identical working implementation;
in a OS component we have not yet committed to use, but the example on the
link below for "FilteredRange..." might be worth a perusal of the source
code.
On Friday, September 14, 2012 2:40:15 AM UTC-4, Rauan Maemirov wrote:
Hi all. Is it possible to get range facets without directly indicating
from/to ranges?
I have an index with products, and prices are too spread. For example some
category of products have costs around 5000 and others around 100000 or
150000. Thus, I don't know, which queries will give me exact ranges and
which will give me only one range with counts, i.e. all results in range
from 0 to 1000, and zero for others.
One way is to query statistical facet for min/max, and then make another
query with range (slices from min to max), but i don't like it.
Any ideas, please?
Le samedi 29 septembre 2012 06:55:29 UTC+6, BillyEm a écrit :
Ruan and Kim:
Earlier this week I came across an almost identical working
implementation; in a OS component we have not yet committed to use, but the
example on the link below for "FilteredRange..." might be worth a perusal
of the source code.
On Friday, September 14, 2012 2:40:15 AM UTC-4, Rauan Maemirov wrote:
Hi all. Is it possible to get range facets without directly indicating
from/to ranges?
I have an index with products, and prices are too spread. For example
some category of products have costs around 5000 and others around 100000
or 150000. Thus, I don't know, which queries will give me exact ranges and
which will give me only one range with counts, i.e. all results in range
from 0 to 1000, and zero for others.
One way is to query statistical facet for min/max, and then make another
query with range (slices from min to max), but i don't like it.
Any ideas, please?
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.