Re: Frequency of phrase

2006-02-25 Thread Chris Hostetter
: > 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

Re: Frequency of phrase

2006-02-25 Thread Eric Jain
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

Re: Frequency of phrase

2006-02-24 Thread Doug Cutting
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 ---

Re: Frequency of phrase

2006-02-24 Thread Eric Jain
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

Re: Frequency of phrase

2006-02-23 Thread Dave Kor
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

Frequency of phrase

2006-02-23 Thread Eric Jain
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