lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc SCHNEIDER <marc.schneide...@gmail.com>
Subject Re: Facets involving multiple fields
Date Fri, 13 Apr 2012 09:48:32 GMT
Hi,

Thanks for your answer.
Yes it works in this case when I know the facet name (Computer). What
if I want to automatically compute all facets?
facet.query=keyword:* short_title:* doesn't work, right?

Marc.

On Thu, Apr 12, 2012 at 2:08 PM, Erick Erickson <erickerickson@gmail.com> wrote:
> 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.schneider73@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 <erickerickson@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.schneider73@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.

Mime
View raw message