int numDocs = filterIndexReader.numDocs();
...
idf = Math.log10((double) numDocs / docFreq);
Sethu_424 wrote
>
>
wrong formula. numDoc should not be a count of documents in index - but
documents containing searching term.
We need something like IndexReader.docFreq( term );
--
View this messa
Hi,
I am not sure if you are still searching the answer for your question. If
so, then please read on...
You can get the DF & IDF for each of the query terms in the query as below..
IndexReader reader = IndexReader.open(FSDirectory.open(new File(indexDir)),
true);
//Create a FilterInde
ve tried boolean query
but unable to do this.
> From: thienthanhom...@gmail.com
> Date: Wed, 3 Feb 2010 04:59:49 +0900
> Subject: Re: Getting DF & IDF
> To: java-user@lucene.apache.org
>
> with my idea,
> using BooleanQuery, you can make every thing.
>
>
> On M
with my idea,
using BooleanQuery, you can make every thing.
On Mon, Feb 1, 2010 at 10:44 PM, Asif Nawaz wrote:
>
> Hi, I am new to use lucene, I have a query string of multiple terms. i) i
> want to return query string by removing stop words and stemmed version of
> the query.
> ii) second i wa