RE: Lower/Uppercase problem when searching in a not-analyzed field

2009-12-14 Thread Jeff Plater
h time you won't be able to use wildcard searching (unless you don't care about wildcard searching). -Jeff -Original Message- From: Michel Nadeau [mailto:aka...@gmail.com] Sent: Mon 12/14/2009 4:36 PM To: java-user@lucene.apache.org Subject: Lower/Uppercase problem when searchi

Re: Lower/Uppercase problem when searching in a not-analyzed field

2009-12-14 Thread Savvas-Andreas Moysidis
Hi, my guess would also be that the StandardAnalyzer lowercases your terms while you have indexed them as they are without lowercasing. One idea would be to use the PerFieldAnalyzerWrapper and map a KeywordAnalyzer (which basically doesn't tokenise your stream at all) to any fields you want not an

Lower/Uppercase problem when searching in a not-analyzed field

2009-12-14 Thread Michel Nadeau
Hi ! My Lucene 3.0.0 index contains a field "DOMAIN" that contains an Internet domain name - like * www.DomainName.com * www.domainname.com * www.DomainName.com/path/to/document/doc.html?a=2 This field is indexed like this - doc.add(new Field("DOMAIN", sValue, Field.Store.YES, Field.Index.NOT_A