lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <erik.hatc...@gmail.com>
Subject Re: Case-insensitive searches and facet case
Date Wed, 20 Jan 2010 17:46:44 GMT

On Jan 20, 2010, at 12:26 PM, Peter S wrote:

>
> Hi,
>
> Regarding case-insensitive searching:
>
> In order to support 'case-insensivity' (lower-casing, really), I've  
> set my index-time and query-time fieldType analyzer to use a  
> LowerCaseFilterFactory filter. This works, but then all my facets  
> get returned in lower-case (e.g. 'object:MyObject (3)' becomes  
> 'object:myobject (3)').
>
> Is there a way to maintain case-impartiality whilst allowing facets  
> to be returned 'case-preserved'?

Yes, use different fields.  Generally facet fields are "string" which  
will maintain exact case.  You can leverage the copyField capabilities  
in schema.xml to clone a field and analyze it differently.

	Erik


Mime
View raw message