: > If you use a span query then you can get the actual number of phrase
: > instances.
:
: Thanks, good to know!
Just to clarify, i Doug means you can use the getSpans method of a
SpanNear query, and then count the iterations of next() untill you run
out.
Which is a really good idea I hadn't t
Doug Cutting wrote:
If you use a span query then you can get the actual number of phrase
instances.
Thanks, good to know!
In this case (need to suggest phrase queries to the user) I've now settled
with dividing the number of hits for a potential phrase by the number of
documents that contain
Eric Jain wrote:
This gives you the number of documents containing the phrase, rather
than the number of occurrences of the phrase itself, but that may in
fact be good enough...
If you use a span query then you can get the actual number of phrase
instances.
Doug
---
Dave Kor wrote:
Not sure if this is what you want, but what I have done is to issue
exact phrase queries to Lucene and counted the number of hits found.
This gives you the number of documents containing the phrase, rather than
the number of occurrences of the phrase itself, but that may in fac
Not sure if this is what you want, but what I have done is to issue
exact phrase queries to Lucene and counted the number of hits found.
On 2/23/06, Eric Jain <[EMAIL PROTECTED]> wrote:
> This is somewhat related to a question sent to this list a while ago: Is
> there an efficient way to count the
This is somewhat related to a question sent to this list a while ago: Is
there an efficient way to count the number of occurrences of a phrase (not
term) in an index?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional c