>From briefly looking at the code it looks like the "field" does not get touched it seems like the only part that gets converted to lower case is the value, so I am assuming that the field name is case sensitive but the value is not?
Thanks, Rob -----Original Message----- From: Otis Gospodnetic [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 8:25 AM To: Lucene Users List Subject: Re: Searches are not case insensitive Why not add print statements to your analyzer to ensure that what you think is happening really is happening? Token has an attribute called 'text' that you could print, I believe. Otis --- Rob Outar <[EMAIL PROTECTED]> wrote: > Hello all, > > I created the following analyzer so that clients could pose case > insensitive searches but queries are still case sensitive: > > // do not tokenize any field > TokenStream t = new CharTokenizer(reader) { > protected boolean isTokenChar(char c) { > return true; > } > }; > //case insensitive search > t = new LowerCaseFilter(t); > > return t; > } > > I use that index when I create a new instance of IndexWriter and when > I use > QueryPaser, I am not sure why my searches are still case dependent. > > Any help would be appreciated. > > Thanks, > > Rob > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
