lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Bowesman <>
Subject Query not finding indexed data
Date Mon, 16 Oct 2006 03:08:37 GMT

I have a field "attname" that is indexed with Field.Store.YES, 
Field.Index.UN_TOKENIZED.  I have a document with the attname of 

QueryParser parser = new QueryParser("body", new StandardAnalyzer());
Query query = parser.parse("attname:IqTstAdminGuide2.pdf");

fails to find the Document, which I guess is because of StandardAnalyzer 
lowercasing the filename.

How can one instruct the QueryParser only to use the Analyzer to analyse fields 
in an expression that were tokenized during the indexing process and to not 
analyse those that were UN_TOKENIZED?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message