facet.query=keywords:computer short_title:computer
seems like what you're asking for.

On Thu, Apr 12, 2012 at 3:19 AM, Marc SCHNEIDER
<marc.schneide...@gmail.com> wrote:
> Hi,
>
> Thanks for your answer.
> Let's say I have to fields : 'keywords' and 'short_title'.
> For these fields I'd like to make a faceted search : if 'Computer' is
> stored in at least one of these fields for a document I'd like to get
> it added in my results.
> doc1 => keywords : 'Computer' / short_title : 'Computer'
> doc2 => keywords : 'Computer'
> doc3 => short_title : 'Computer'
>
> In this case I'd like to have : Computer (3)
>
> I don't see how to solve this with facet.query.
>
> Thanks,
> Marc.
>
> On Wed, Apr 11, 2012 at 5:13 PM, Erick Erickson <erickerick...@gmail.com> 
> wrote:
>> Have you considered facet.query? You can specify an arbitrary query
>> to facet on which might do what you want. Otherwise, I'm not sure what
>> you mean by "faceted search using two fields". How should these fields
>> be combined into a single facet? What that means practically is not at
>> all obvious from your problem statement.
>>
>> Best
>> Erick
>>
>> On Tue, Apr 10, 2012 at 8:55 AM, Marc SCHNEIDER
>> <marc.schneide...@gmail.com> wrote:
>>> Hi,
>>>
>>> I'd like to make a faceted search using two fields. I want to have a
>>> single result and not a result by field (like when using
>>> facet.field=f1,facet.field=f2).
>>> I don't want to use a copy field either because I want it to be
>>> dynamic at search time.
>>> As far as I know this is not possible for Solr 3.x...
>>> But I saw a new parameter named "group.facet" for Solr4. Could that
>>> solve my problem? If yes could somebody give me an example?
>>>
>>> Thanks,
>>> Marc.

Reply via email to