lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Sibert" <chrissib...@attbi.com>
Subject Re: Keywords
Date Tue, 25 Jun 2002 15:51:16 GMT
My initial post may have been a little confusing. Here's my situation. I
have a keyword field stored in a Lucene index. It is not tokenized, as it's
a keyword field. But, when I go to run a search against this keyword field,
it seems to be tokenizing the search string.

            String searchString = "T0001-001 M"

            myQuery   = QueryParser.parse ( searchString,
"FieldDocumentNumber", simpleAnalyzer )    ;
            hits            = indexSearcher.search ( myQuery )     ;


How do I do a search on a keyword field ? Is there another search method to
use for this purpose, other than the one that I am using here ?


----- Original Message -----
From: "Chris Sibert" <chrissibert@attbi.com>
To: <lucene-user@jakarta.apache.org>
Sent: Tuesday, June 25, 2002 3:22 AM
Subject: Keywords


How do I do a search on a keyword field ? I am using the Query object with a
SimpleAnalyzer, and it's parsing my keyword into terms, which I don't want.



--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message