You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by William Bell <bi...@gmail.com> on 2013/04/26 10:01:59 UTC

Lucene native facets

Since facets are now included in Lucene, why don't we add a pass through
from Solr? The current facet code can live on but we could create new param
like facet.lucene=true?

Seems like a great enhancement !


-- 
Bill Bell
billnbell@gmail.com
cell 720-256-8076

Re: Lucene native facets

Posted by William Bell <bi...@gmail.com>.
https://issues.apache.org/jira/browse/SOLR-4774




On Fri, Apr 26, 2013 at 6:30 AM, Jack Krupansky <ja...@basetechnology.com>wrote:

> Sure, but they are completely different conceptual models of faceting -
> Solr is dynamic, based on the actual data for the hierarchy, while Lucene
> is static, based on a predefined taxonomy that must be meticulously created
> before any data is added.
>
> Solr answers the question: what structure does your data have, while
> Lucene answers the question how does your data fit into a predefined
> structure. Both are valid and valuable questions, but they are still rather
> distinct.
>
> Yes, Solr should provide support for static facet taxonomies, but what
> exactly that would look like... has not even been proposed yet, yet alone
> as simple as "facet.lucene=true".
>
> OTOH, maybe most of the work may be simply to add "taxonomy management" to
> Solr (as a passthrough to the Lucene features), and then maybe a lot of the
> existing Solr facet parameters simply need parallel Lucene-oriented
> implementations.
>
> But, the other half of Solr facets is how filter queries are used for
> selecting facets. That's all done at the application level, so it can't be
> "hidden" from the app so easily. Maybe a new Solr facet filter API can be
> developed that can then in turn have Solr facet vs. Lucene facet
> implementations. Or, maybe a new dynamic facet Lucene API could be added as
> well, so that Solr facets in fact become a passthrough as well.
>
> Still, it would be good to support Lucene facets in Solr. Maybe that could
> be one of the key turning points for what defines Lucene/Solr 5.0.
>
> Is there a Jira for this? I don't recall one.
>
> -- Jack Krupansky
>
> -----Original Message----- From: William Bell
> Sent: Friday, April 26, 2013 4:01 AM
> To: solr-user@lucene.apache.org
> Subject: Lucene native facets
>
>
> Since facets are now included in Lucene, why don't we add a pass through
> from Solr? The current facet code can live on but we could create new param
> like facet.lucene=true?
>
> Seems like a great enhancement !
>
>
> --
> Bill Bell
> billnbell@gmail.com
> cell 720-256-8076
>



-- 
Bill Bell
billnbell@gmail.com
cell 720-256-8076

Re: Lucene native facets

Posted by Jack Krupansky <ja...@basetechnology.com>.
Sure, but they are completely different conceptual models of faceting - Solr 
is dynamic, based on the actual data for the hierarchy, while Lucene is 
static, based on a predefined taxonomy that must be meticulously created 
before any data is added.

Solr answers the question: what structure does your data have, while Lucene 
answers the question how does your data fit into a predefined structure. 
Both are valid and valuable questions, but they are still rather distinct.

Yes, Solr should provide support for static facet taxonomies, but what 
exactly that would look like... has not even been proposed yet, yet alone as 
simple as "facet.lucene=true".

OTOH, maybe most of the work may be simply to add "taxonomy management" to 
Solr (as a passthrough to the Lucene features), and then maybe a lot of the 
existing Solr facet parameters simply need parallel Lucene-oriented 
implementations.

But, the other half of Solr facets is how filter queries are used for 
selecting facets. That's all done at the application level, so it can't be 
"hidden" from the app so easily. Maybe a new Solr facet filter API can be 
developed that can then in turn have Solr facet vs. Lucene facet 
implementations. Or, maybe a new dynamic facet Lucene API could be added as 
well, so that Solr facets in fact become a passthrough as well.

Still, it would be good to support Lucene facets in Solr. Maybe that could 
be one of the key turning points for what defines Lucene/Solr 5.0.

Is there a Jira for this? I don't recall one.

-- Jack Krupansky

-----Original Message----- 
From: William Bell
Sent: Friday, April 26, 2013 4:01 AM
To: solr-user@lucene.apache.org
Subject: Lucene native facets

Since facets are now included in Lucene, why don't we add a pass through
from Solr? The current facet code can live on but we could create new param
like facet.lucene=true?

Seems like a great enhancement !


-- 
Bill Bell
billnbell@gmail.com
cell 720-256-8076