lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Sibert" <>
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            = ( 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" <>
To: <>
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:   <>
For additional commands, e-mail: <>

View raw message