lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Simple Faceted Searching out of the box
Date Tue, 12 Sep 2006 13:52:07 GMT

On Sep 12, 2006, at 4:15 AM, Kevin Lewandowski wrote:
> Is it possible that the facets can be based on the contents of an
> entire field instead of the terms?

For this, you could use a <copyField> to copy one field into another  
field where one is tokenized and the other is not.  And then return  
facets for the non-tokenized field.

> For example say I have a document with this field:
> <field name="genre">Hip Hop</field>
>
> A facet query on the genre field returns:
> <lst name="genre">
>  <int name="hip">1</int>
>  <int name="hop">1</int>
> </lst>
>
> but I'd like it to return:
> <lst name="genre">
>  <int name="hip hop">1</int>
> </lst>


I assume you want the same case as the original field though... "Hip  
Hop".

	Erik


Mime
View raw message