Re: Case Insensitive search while preserving case

2010-05-05 Thread Peter Sturge
You can't get 'round this without creating a copyField or similar. It's easy to do in schema.xml Store one field (e.g. 'state') using a fieldType that is configured to use a LowercaseFilterFactory, and the other not (e.g. 'state_verbatim'). When you search, use the lowercase one for case-insensiti

Re: Case Insensitive search while preserving case

2010-05-05 Thread Ahmet Arslan
> > All my fields are stored. > > And if my field name is "state" means that your suggestion > is appending > "fl=state", then no, that's not doing anything for > me.  =( > > The above config gets me part of the way to where I need to > be.  Storing, > for instance, "Alaska" in such a way that

Re: Case Insensitive search while preserving case

2010-05-05 Thread Erik Hatcher
For this scenario, you'll want to use copyField. Search on the lowercased field, but facet on a field without lowercasing involved. Erik On May 4, 2010, at 7:24 PM, dbashford wrote: I've looked through the history and tried a lot of things but can't quite get this to work. Used

Re: Case Insensitive search while preserving case

2010-05-04 Thread dbashford
All my fields are stored. And if my field name is "state" means that your suggestion is appending "fl=state", then no, that's not doing anything for me. =( The above config gets me part of the way to where I need to be. Storing, for instance, "Alaska" in such a way that querying for "alaska",

Re: Case Insensitive search while preserving case

2010-05-04 Thread Ahmet Arslan
> I've looked through the history and tried a lot of things > but can't quite get > this to work. > > Used this in my last attempt: > >     class="solr.TextField" > positionIncrementGap="100"> >       >         class="solr.KeywordTokenizerFactory"/> >         class="solr.LowerCaseFilterFactor