lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uri Boness (JIRA)" <>
Subject [jira] Commented: (SOLR-1351) facet on same field different ways
Date Sat, 12 Sep 2009 10:56:57 GMT


Uri Boness commented on SOLR-1351:

This is something that I've done in the far past (Solr 1.2) and they way I see it, facets
should be identified by a unique idea rather than by the field name and the facet results
will then be grouped by these ids. I think this can be done by just adding one extra parameter
in the form: 


This parameter will practically mean that all other specific parameter for field facet will
need to use this id instead of the field name, that is:

Assuming we have a field called "cat" to represent a category. Right now (without an id) we
ca do:


with introducing the id:


Now to support multiple "configurations":


Note that even after introducing the id param, backward compatibility can easily be maintained
- we just determine that when the id param is not specified, the field name is the default

>From experience, I can tell you that adding this feature not only will enable multiple
facets on the same field, but IMO will also make it much easier to develop search clients
and tools on top of Solr.

If this solution sounds reasonable, I can start working on a patch for it.

> facet on same field different ways
> ----------------------------------
>                 Key: SOLR-1351
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Yonik Seeley
>             Fix For: 1.5
> There is a general need to facet on the same field in different ways (different prefixes,
different filters).  We need a way to express this.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message