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 jingjung Ng <ji...@gmail.com> on 2012/01/23 23:45:29 UTC

Solr Java client API

Hi,

I implemented the facet using

query.addFacetQuery
query.addFilterQuery

to facet on:

gender:male
state:DC

This works fine. How can I facet on multi-values using Solrj API, like
following:

gender:male
gender:female
state:DC


I've tried, but return 0. Can anyone help ?

Thanks,

-jingjung ng

Re: Solr Java client API

Posted by Erick Erickson <er...@gmail.com>.
It would really help to see the relevant parts of the code
you're using to see what you've tried. You might want to
review:
http://wiki.apache.org/solr/UsingMailingLists

Best
Erick

On Mon, Jan 23, 2012 at 2:45 PM, jingjung Ng <ji...@gmail.com> wrote:
> Hi,
>
> I implemented the facet using
>
> query.addFacetQuery
> query.addFilterQuery
>
> to facet on:
>
> gender:male
> state:DC
>
> This works fine. How can I facet on multi-values using Solrj API, like
> following:
>
> gender:male
> gender:female
> state:DC
>
>
> I've tried, but return 0. Can anyone help ?
>
> Thanks,
>
> -jingjung ng