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 Mohamed Zahoor <jm...@me.com> on 2012/12/17 16:13:32 UTC
Faceting on Dynamic fields
Hi
I have many dynamic fields in my schema name_X where X can range from 0 to 10.
Not all documents will have all the fields from 0 to 10.
I want to do a fecet on these fields.
I have seen SOLR-247 and other queries in this list.
Is there any other way other than patching SOLR-247 on 4.0?
./Zahoor
Re: Faceting on Dynamic fields
Posted by Erick Erickson <er...@gmail.com>.
The base problem is you don't know what they are in advance. You could
simply attach &facet.field=name_0&facet.field=name_1....
Or is "name" variable too? If it is, you could query the index up-front and
get all of the dynamic field names (the admin page does this) and assemble
the above from the returned list.
But, if you hava LOT of these fields, this is going to be an expensive
query.
Best
Erick
On Mon, Dec 17, 2012 at 10:13 AM, Mohamed Zahoor <jm...@me.com> wrote:
> Hi
>
> I have many dynamic fields in my schema name_X where X can range from 0
> to 10.
> Not all documents will have all the fields from 0 to 10.
>
> I want to do a fecet on these fields.
> I have seen SOLR-247 and other queries in this list.
>
>
> Is there any other way other than patching SOLR-247 on 4.0?
>
> ./Zahoor
>