Re: wildcard uppercase

2004-08-12 Thread Erik Hatcher
he wildcard query. How can I make it not do that? Thanks, Peter -----Original Message- From: Otis Gospodnetic [mailto:[EMAIL PROTECTED] Sent: Thursday, August 12, 2004 3:03 PM To: Lucene Users List Subject: Re: wildcard uppercase Just use an Analyzer that doesn't lowercase. That FAQ entry

RE: wildcard uppercase

2004-08-12 Thread Kipping, Peter
Thanks Daniel, that worked. Peter -Original Message- From: Daniel Naber [mailto:[EMAIL PROTECTED] Sent: Thursday, August 12, 2004 4:06 PM To: Lucene Users List Subject: Re: wildcard uppercase On Thursday 12 August 2004 22:30, Kipping, Peter wrote: > As you can see it's be

RE: wildcard uppercase

2004-08-12 Thread Otis Gospodnetic
Query q = QueryParser.parse(sr, "molecular_formula", pw); > System.out.println(q.toString()); > > I get this: > molecular_formula:c9h10o5* > > As you can see it's been lower cased and I get no hits. Looks like > something is lowercasing the

Re: wildcard uppercase

2004-08-12 Thread Daniel Naber
On Thursday 12 August 2004 22:30, Kipping, Peter wrote: > As you can see it's been lower cased and I get no hits. ÂLooks like > something is lowercasing the wildcard query. ÂHow can I make it not do > that? Try QueryParser's setLowercaseWildcardTerms(boolean). Regards Daniel -- http://www.dan

RE: wildcard uppercase

2004-08-12 Thread Kipping, Peter
tring()); I get this: molecular_formula:c9h10o5* As you can see it's been lower cased and I get no hits. Looks like something is lowercasing the wildcard query. How can I make it not do that? Thanks, Peter -Original Message- From: Otis Gospodnetic [mailto:[EMAIL PROTECTED] Sent: Thur

Re: wildcard uppercase

2004-08-12 Thread Otis Gospodnetic
Just use an Analyzer that doesn't lowercase. That FAQ entry assumes that the Analyzer does lowercase its input. Searching IS case sensitive, it's just that people often use an Analyzer that lowercases everything (at indexing and at query time), so the search appears not to be case sensitive, and t

wildcard uppercase

2004-08-12 Thread Kipping, Peter
I'm doing wildcard searches on molecular formulas where case is critical. For instance Co = Cobalt, CO = Carbon Monoxide. I've read the faq on this: Yes, unlike other types of Lucene queries, Wildcard, Prefix, and Fuzzy queries are case sensitive. That is because those types of queries are no