Karsten F. wrote:
Hi Bill,
you should not use prefix-query (*), because in first step lucene would
generate a list of all terms in this field, and than search for all this
terms. Which is senceless.
That's not quite an accurate description of what it does as it nowhere
near as slow as doi
UN_TOKENIZED));
> > ...
> >
> > One thing I tried is to change my field creation statement like this:
> >
> > doc.add(new Field(name, "" + value, Field.Store.NO,
> > Field.Index.UN_TOKENIZED));
> >
> > then do a query like this:
> >
#x27;ll give it a try.
> Thanks for the help.
>
> regards,
>
> Bill
>
>
> -Original Message-
> From: Karsten F. [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 18, 2008 11:45 AM
> To: java-user@lucene.apache.org
> Subject: Re: Testing for field existence
&
ssage-
From: Karsten F. [mailto:[EMAIL PROTECTED]
Sent: Monday, August 18, 2008 11:45 AM
To: java-user@lucene.apache.org
Subject: Re: Testing for field existence
Hi Bill,
you should not use prefix-query (*), because in first step lucene
would
generate a list of all terms in this field, and
ld.Store.NO,
> Field.Index.UN_TOKENIZED));
>
>
> then do a query like this:
>
>
> +foo:*
>
>
>
>
--
View this message in context:
http://www.nabble.com/Testing-for-field-existence-tp19032939p19034359.html
Sent from the Lucene - Java Users mailing list archive
Hello,
I am creating fields for documents like this:
String name = ...
String value = ...
doc.add(new Field(name, value, Field.Store.NO,
Field.Index.UN_TOKENIZED));
On the query side, sometimes I want to want to search for documents for
which a given field, say 'foo' is equal to a giv