lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Schaer" <ralphsch...@yahoo.com>
Subject joker * problem
Date Tue, 04 Feb 2003 07:32:36 GMT
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: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message