I had a similar problem. The problem was the "-' char, which is a special
char for Lucene. You can try indexing the data in lowercase and use
WhitespaceAnalyzer for both indexing and searching over the field. One
other option is replace "-" with "_" when indexing and searching. This way,
your data
Try QueryParser.setLowercaseExpandedTerms(false). QueryParser will
lowercase terms in prefix etc queries by default.
If that doesn't work, and it was my problem, I'd just lowercase
everything, everywhere. Life's too short to mess around with case
issues.
--
Ian.
On Tue, Dec 6, 2011 at 8:12 A
Dear Lucene-users,
I am a bit puzzled over this. I have a query which should return some
documents, if I use Luke, I obtain hits using the
org.apache.lucene.analysis.KeywordAnalyzer.
This is the query:
domain:NB-AR*
(I have data indexed using:
doc.add(new Field("domain", NB-ARC, Field.Store.YE