lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grant Ingersoll (JIRA)" <>
Subject [jira] Commented: (SOLR-1581) Facet by Function
Date Thu, 17 Feb 2011 16:58:30 GMT


Grant Ingersoll commented on SOLR-1581:

I've been digging into this a bit more and I've got an idea that I want to throw out there
about this and how it relates to Numeric Range faceting (and possibly date faceting)

Currently, the numeric range faceting produces a series of range queries from which it retrieves
the number of documents that satisfy that query.  For facet by function, I'm thinking that
I would parse the facet.range value and get back a ValueSource, from which I would get the
DocValues and then I would iterate over the DocValues for the base docset and keep counts
for each bucket.  It then occurred to me that wouldn't this be a faster way then doing the
range queries (at the cost of it being a ValueSource and thus in memory) for each gap?  Otherwise,
what I will do is simply put in an if/else clause, if it is a function do the ValueSource,
otherwise do the current way.

> Facet by Function
> -----------------
>                 Key: SOLR-1581
>                 URL:
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Grant Ingersoll
>             Fix For: Next
> It would be really great if we could execute a function and quantize it into buckets
that could then be returned as facets.

This message is automatically generated by JIRA.
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message