Mailing List Archive

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: <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>
Re: number of term match in a search ... [ In reply to ]
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" <victorh@nuix.com.au>
To: "Lucene Developers List" <lucene-dev@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:
<mailto:lucene-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:lucene-dev-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail: <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>