You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Victor Hadianto <vi...@nuix.com.au> on 2002/05/05 08:15:19 UTC

number of term match in a search ...

Hi,

I posted this question in the user list and no response. I posted again in 
the dev list hoping that someone can shed a bit of light in my problem.

Is there a way to found out the number of times a word is found in the query? 
For example if I search for: Java Programmers

Not only I want to retrieve the list of documents that matches, I also 
wanted, within that search result, the count of Java and Programmers.

Is it possible to do this with Lucene? Or do I have do a bit of changes in 
the code. If this so could someone kindly point me to the area?

Hope I don't annoy anyone.

Regards,

-- 
Victor Hadianto

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: number of term match in a search ...

Posted by Julien Nioche <Ju...@lingway.com>.
Hi,

We had a discussion on this topic a few month ago.

http://www.mail-archive.com/lucene-dev@jakarta.apache.org/msg00091.html

In particular Doug's answer :

http://www.mail-archive.com/lucene-dev@jakarta.apache.org/msg00101.html

Retrieving this information requires a few changes in the code (in
particular for count of Phrase Queries).

Maybe we could do include it in a future release? Do people thinks it's an
useful feature?





----- Original Message -----
From: "Victor Hadianto" <vi...@nuix.com.au>
To: "Lucene Developers List" <lu...@jakarta.apache.org>
Sent: Saturday, May 04, 2002 11:15 PM
Subject: number of term match in a search ...


> Hi,
>
> I posted this question in the user list and no response. I posted again in
> the dev list hoping that someone can shed a bit of light in my problem.
>
> Is there a way to found out the number of times a word is found in the
query?
> For example if I search for: Java Programmers
>
> Not only I want to retrieve the list of documents that matches, I also
> wanted, within that search result, the count of Java and Programmers.
>
> Is it possible to do this with Lucene? Or do I have do a bit of changes in
> the code. If this so could someone kindly point me to the area?
>
> Hope I don't annoy anyone.
>
> Regards,
>
> --
> Victor Hadianto
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>