lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bhavin Pandya" <bhav...@rediff.co.in>
Subject Re: IndexReader.docFreq
Date Wed, 17 Jan 2007 11:30:46 GMT
Hi Otis,

Thanks for your prompt reply...

But its happening for all search strings...not only for friends...
If i fire "friend" or "boy" then also its not showing any results while it 
has...

Is it something like that docFreq is checking for only Exact match...

- Bhavin

----- Original Message ----- 
From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
To: <java-user@lucene.apache.org>
Sent: Wednesday, January 17, 2007 4:35 PM
Subject: Re: IndexReader.docFreq


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 <bhavinp@rediff.co.in>
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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


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


Mime
View raw message