Hi All,

I'm trying to run a search on a keyword field on a document. I've got the 
following code:

Query query = QueryParser.parse("test:\"hello world\", "", new 
StandardAnalyzer());
logger.debug("Searching for: " + query.toString("") + " using " + 
query.toString());
Hits hits = searcher.search(query);


The test field was populated with:

doc.add(Field.Keyword("test", "hello world"));


The logger output is:

Searching for: key:"goodbye everyone" using 
org.apache.lucene.search.PhraseQuery@5cda3f


For some reason that I can't fathom, the search is returning 0 hits...

Thanks for any help,

Kiril

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to