Hi Martin:
I just started a wiki on this:
http://browseengine.pbwiki.com/

Has references to the source code.

I have written a solr plugin, but it depends on SOLR-243.

The implmentation is different from the solr facetted search implementation.

Look at the demo:
http://www.browseengine.com/democar/demo-car.html

it exhibts dynamic range calculation.

Thanks

-John


On 6/27/07, Martin Grotzke <[EMAIL PROTECTED]> wrote:

On Tue, 2007-06-26 at 19:53 -0700, John Wang wrote:
> www.browseengine.com has facet search that handles this.
You are calculating range facets dynamically? Do you have any
code I can have a look at? I had a look at c.b.solr.
BoboRequestHandler, but this does not seem to calculate ranges.

Cheers,
Martin

>
> We are working on a solr plugin.
>
> -John
>
> On 6/26/07, Mike Klaas <[EMAIL PROTECTED]> wrote:
> >
> > On 26-Jun-07, at 3:01 PM, Martin Grotzke wrote:
> > > AFAICS I do not have the possibility to specify range queries in my
> > > application, as I do not have a clue what's the lowest and highest
> > > price in the search result and what are "good" ranges according
> > > to the (statistical) distribution of prices in the search result.
> > >
> > > So if it would be possible to go over each item in the search result
> > > I could check the price field and define my ranges for the specific
> > > query on solr side and return the price ranges as a facet.
> > >
> > > Has anybody done s.th. like this before, or is there s.th. that I'm
> > > missing and why this approach does not make sense at all?
> > >
> > > Otherwise, what would be a good starting point to plug in such
> > > functionality into solr?
> >
> > Easy: facet based on fixed ranges (say, every 10 dollars for x < 100,
> > 100 dollars for x < 1000, etc)., and combine them sensically on the
> > client-side.  Requires no solr-side modification.
> >
> > A bit harder: define your own request handler that loops over the
> > documents after a search and samples the values of (say) the first 20
> > docs (or more, but be sure to use the FieldCache if so).  Calculate
> > your range queries, facets (code will be almost identical to the code
> > in the builtin request handlers), and return the results.
> >
> > cheers,
> > -Mike
> >
--
Martin Grotzke
http://www.javakaffee.de/blog/


Reply via email to