What? You actually want me to put forth some effort? That's crazy talk ..
Thanks, I think I've got it now.
Best
Erick
: Thanks much for that clarification, it helps a lot. The original request was
: to find docs wthat were NOT NULL, so I'm glad I'm not the only one who
: But with your RangeFilter comment, that seems unnecessary. You can use a
: RangeFilter with null, null as bounds, then just flip the bits in t
Chris:
Thanks much for that clarification, it helps a lot. The original request was
to find docs wthat were NOT NULL, so I'm glad I'm not the only one who
remembers things...er...incongruently with reality
About empty values for a field. That'll teach me to try to remember without
looking
: Zip IS NOT NULL
:
: why invert the bitset?
i think the orriginal request was to find all docs where the field did
*not* have any value ... or in your vernacular: where Zip IS NULL
: a token containing the empty string matches documents that
: > contain that token
: >
:
: Isn't this exactly what
Ok, I'm confused again, not unusual To create a bitset for the following
condition
Zip IS NOT NULL
why invert the bitset?
a token containing the empty string matches documents that
contain that token
Isn't this exactly what he wants? Or am I mis-reading this? I'm reading it
as "any do
: TermDocs termDocs = reader.termDocs();
: termDocs.seek(new Term("", ""));
: while (termDocs.next()) {
: bits.set(termDocs.doc());
: }
:
: I *think* (and I'm remembering things folks wrote, haven't done this myself)
: that the empty string for the Term matches all terms. If not, you m
Thank you very much.
From: "Erick Erickson" <[EMAIL PROTECTED]>
Reply-To: java-user@lucene.apache.org
To: java-user@lucene.apache.org
Subject: Re: Empty fields ...
Date: Wed, 19 Jul 2006 09:48:04 -0400
Try something like
TermDocs termDocs = reader.termDocs();
termDo
Try something like
TermDocs termDocs = reader.termDocs();
termDocs.seek(new Term("", ""));
while (termDocs.next()) {
bits.set(termDocs.doc());
}
I *think* (and I'm remembering things folks wrote, haven't done this myself)
that the empty string for the Term matches all terms. If not, y
?
termDocs()??? Thank you.
From: "Erick Erickson" <[EMAIL PROTECTED]>
Reply-To: java-user@lucene.apache.org
To: java-user@lucene.apache.org
Subject: Re: Empty fields ...
Date: Tue, 18 Jul 2006 13:08:53 -0400
Quoting the guys "it depends" ...
At root, a filter is a bitset. S
Quoting the guys "it depends" ...
At root, a filter is a bitset. So size-wise, you are using 1 bit/doc (plus
some small overhead). Both the storage required and the time to construct
are dependent on the characteristics of your corpus. I guess the only way
you can answer that for your particular
AIL PROTECTED]>
Reply-To: java-user@lucene.apache.org
To: java-user@lucene.apache.org
Subject: Re: Empty fields ...
Date: Tue, 18 Jul 2006 10:41:28 -0400
You could use a filter. You'd just construct a filter with the bits on for
all docs that had that term. You could cache these to make futur
You could use a filter. You'd just construct a filter with the bits on for
all docs that had that term. You could cache these to make future searchers
easier. I envision, say, caching one filter for each field and keeping them
around so you could re-use them whenever you wanted.
See ConstantScore
12 matches
Mail list logo