Random guess:

You are using an analyzer that stored "friend" (or some other stem), and not 
"friends", so term "friends" doesn't really exist in your inex - it's frequency 
is zero.

Otis

----- Original Message ----
From: Bhavin Pandya <[EMAIL PROTECTED]>
To: java-user@lucene.apache.org
Sent: Wednesday, January 17, 2007 6:16:38 AM
Subject: IndexReader.docFreq

Hi,

I am confused using IndexReader.docFreq...

I am using lucene 1.9 ....my code snippet is,


int noofdoc = mreader.docFreq(new Term("TITLE","friends"));

where mreader is MultiReader...

few doc from index which has TITLE likes...

friends in usa
girl friends
boy friends

but "noofdoc" is showing zero.......

Any pointer....

- Bhavin pandya




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to