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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to