You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Chad Small <Ch...@definityhealth.com> on 2004/03/23 17:57:20 UTC
Query syntax on Keyword field question
Hello,
How can I format a query to get a hit?
I'm using the StandardAnalyzer() at both index and search time.
If I'm indexing a field like this:
luceneDocument.add(Field.Keyword("category","HW-NCI_TOPICS"));
I've tried the following with no success:
// String searchArgs = "HW\\-NCI_TOPICS";
// String searchArgs = "HW\\-NCI_TOPICS".toLowerCase();
// String searchArgs = "+HW+NCI+TOPICS";
//this works with .Text field
// String searchArgs = "+hw+nci+topics";
// String searchArgs = "hw nci topics";
thanks,
chad.