lucy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Wellnhofer <wellnho...@aevum.de>
Subject Re: [lucy-user] Case Sensitive Index with options to do Case In-Sensitive search
Date Sat, 01 Feb 2014 00:42:06 GMT
On Jan 31, 2014, at 22:59 , Nick D. <ndwyer@globaldataguard.com> wrote:

> I see that by not including the CaseFolder in my PolyAnalyzer at index time,
> I can do case sensitive searches. Is there a way to do a case insensitive
> search on an index that was stored case sensitive?

Not really. You could write a custom query class, but it won’t be very efficient.

> I have a need to have the option to do case insensitive and case sensitive
> searches at search time and having 2 indexes (1 for each case) is not really
> an option due to the amount of live data (data constantly coming off the
> wire) being indexed at once.

You don’t have to create two separate indexes. You can create a single index with two fields.
One for case-insensitive matching with a CaseFolder and another for case-sensitive matching
without.

Nick



Mime
View raw message