lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chad Small" <Chad.Sm...@definityhealth.com>
Subject Query syntax on Keyword field question
Date Tue, 23 Mar 2004 16:57:20 GMT
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.
Mime
View raw message