lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jón Helgi Jónsson <jonjons...@gmail.com>
Subject Re: How to use key with facet.prefix?
Date Sat, 08 Aug 2009 12:31:37 GMT
Thanks for that. So perhaps use copyfield in schema and make a subcat
field identical to my category would be the best solution?

On Sat, Aug 8, 2009 at 10:17 AM, Koji Sekiguchi<koji@r.email.ne.jp> wrote:
> Jón Helgi Jónsson wrote:
>>
>> I'm trying to facet multiple times on same field using key.
>>
>> This works fine except when I use prefixes for these facets.
>>
>> What I got so far (and not functional):
>> ..
>> &facet=true
>> &facet.field=category&f.category.facet.prefix=01
>> &facet.field={!key=subcat}category&f.subcat.facet.prefix=00
>>
>> This will give me 2 facets in results, one named 'category' and
>> another 'subcat' like expected. But prefix for key 'subcat' is ignored
>> and the other prefix is used for both facets.
>>
>> How do I use key with prefixes or am I barking up the wrong tree here?
>>
>> Thanks!
>>
>>
>
> I think '!key' can be used for just a label when displaying
> the facet result. As it doesn't change its field name,
> the parameter f.subcat.facet.prefix=00 is ignored.
>
> Koji
>
>
>

Mime
View raw message