Dynamic range facet

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?

--

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.

http://code.google.com/p/bobo-browse/wiki/CompositeFacetHandlers

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?

--

Hey all, any ideas? Other than hacking with source?

Here's discussion of similar
problem: Redirecting to Google Groups

I also don't want to make query twice.

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.

Google Code Archive - Long-term storage for Google Code Project Hosting.

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?

--