lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@hatcher.net>
Subject Re: Keyword query confusion
Date Sat, 25 Sep 2004 23:47:08 GMT
On Sep 25, 2004, at 5:59 AM, Erik Hatcher wrote:
> On Sep 24, 2004, at 12:26 PM, Fred Toth wrote:
>> I'm trying to understand what's going on with the query parser
>> and keyword fields.
>
> It's a confusing situation, for sure.
>
>> I've got a large subset of my documents which are "publications".
>> So as to be able to query these, I've got this in the indexer:
>>
>> doc.add(Field.Keyword("is_pub", "1"));
>>
>> However, if I run a query:
>>
>> 	is_pub:1
>>
>> I get no hits. If I find a document by other means and dump the
>> fields, the "is_pub" keyword is there, with value of "1".
>
> As already stated - it is the analyzer eating the "1".  Every field is 
> analyzed by QueryParser, but during indexing Field.Keyword fields are 
> not indexed.

Typo correction:  "during indexing Field.Keyword fields are not" 
*analyzed*


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


Mime
View raw message