You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Anny Bridge <an...@gmail.com> on 2007/05/15 09:05:29 UTC

number of times the keyword match

Hi all,

When do search with lucene,can i get the number of times the keyword match
with a specific document?

Thanks in advance.

Best Regards,
Anny.

Re: number of times the keyword match

Posted by Anny Bridge <an...@gmail.com>.
Hi Grant,

Is there any code example for this case?

Thanks,
Anny

On 5/15/07, Grant Ingersoll <gs...@apache.org> wrote:
>
> Yes, have a look at the SpanQuery functionality.
>
> -Grant
>
> On May 15, 2007, at 3:05 AM, Anny Bridge wrote:
>
> > Hi all,
> >
> > When do search with lucene,can i get the number of times the
> > keyword match
> > with a specific document?
> >
> > Thanks in advance.
> >
> > Best Regards,
> > Anny.
>
> --------------------------
> Grant Ingersoll
> Center for Natural Language Processing
> http://www.cnlp.org/tech/lucene.asp
>
> Read the Lucene Java FAQ at http://wiki.apache.org/jakarta-lucene/
> LuceneFAQ
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Re: number of times the keyword match

Posted by Grant Ingersoll <gs...@apache.org>.
Yes, have a look at the SpanQuery functionality.

-Grant

On May 15, 2007, at 3:05 AM, Anny Bridge wrote:

> Hi all,
>
> When do search with lucene,can i get the number of times the  
> keyword match
> with a specific document?
>
> Thanks in advance.
>
> Best Regards,
> Anny.

--------------------------
Grant Ingersoll
Center for Natural Language Processing
http://www.cnlp.org/tech/lucene.asp

Read the Lucene Java FAQ at http://wiki.apache.org/jakarta-lucene/ 
LuceneFAQ



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org