Hello
I found a problem with the joker * and lower/uppercase search strings. (latest nightly
build)
Here's the index
IndexWriter writer = new IndexWriter("c:\\temp\\ix", new StandardAnalyzer(), true);
Document doc = new Document();
doc.add(Field.UnStored("txt", "Onetwo"));
doc.add(Field.UnStored("txt", "two three"));
doc.add(Field.UnIndexed("id", "1"));
writer.addDocument(doc);
writer.optimize();
writer.close();
Searcher searcher = new IndexSearcher("c:\\temp\\ix");
Without the joker I can enter the search string lower or uppercase.
Both queries find the document:
Query query = QueryParser.parse("onetwo", "txt", new StandardAnalyzer());
Query query = QueryParser.parse("Onetwo", "txt", new StandardAnalyzer());
But with the joker * the uppercase version does not find the document:
Query query = QueryParser.parse("one*", "txt", new StandardAnalyzer()); <-- document
found
Query query = QueryParser.parse("One*", "txt", new StandardAnalyzer()); <-- no
document found
Regards
Ralph
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]