Re: [Lucene.Net] how to make the search not case sensitive

2011-02-23 Thread Wen Gao
Thanks, I solved this problem. I found that if what i typed is lowercase, the result is not case senstive, e.g. if search for "database" it would return "DATABASE", "database". However, if what i typed is uppercase, the result is case sensitive, e.g. if search for "DATABASE", no results would retu

Re: [Lucene.Net] how to make the search not case sensitive

2011-02-23 Thread Ayende Rahien
https://github.com/ravendb/ravendb/blob/master/Raven.Database/Indexing/LowerCaseAnalyzer.cs On Tue, Feb 22, 2011 at 11:13 PM, Wen Gao wrote: > Hi, > > I am using lucene's standard analyser to search, however, the search result > is case sensitive. e.g, when i search for "database", "DATABASE" co

Re: [Lucene.Net] how to make the search not case sensitive

2011-02-22 Thread Peter Mateja
Wen, You need to make sure that you are using the same analyzer when both indexing and searching in a particular index field. For instance, in your case, you need to ensure that the value "DATABASE" (in whatever field that is in) is indexed with the StandardAnalyzer. Then, use the StandardAnalyze

[Lucene.Net] how to make the search not case sensitive

2011-02-22 Thread Wen Gao
Hi, I am using lucene's standard analyser to search, however, the search result is case sensitive. e.g, when i search for "database", "DATABASE" could not return. I could store the typed items as lowercase, and store the stored data as lowercase as well, but in this case, the returned results wou