Tf and Df in lucene

2015-06-14 Thread Shay Hummel
Hi I was wondering, what is the easiest way to get the term frequency of a term t in document d, namely tf(t,d) ? In the same spirit - what is the easieast way the get the document frequency of a term in the collection, i.e. how many contain the term t, namely df(t) ? Regards, Shay

Re: Exception While searching through indices.

2015-06-14 Thread Đạt Cao Mạnh
Can you post you scenario in detail along with your modification please? On 14:09, Sun, 14 Jun 2015 Gimantha Bandara wrote: > Hi Dat, > > I can reproduce this behavior even with like 5 records. Is what you > said the only reason that make this exception occur? > > Thanks, > > On Sat, Jun 13,

Re: Exception While searching through indices.

2015-06-14 Thread Gimantha Bandara
Hi Dat, I can reproduce this behavior even with like 5 records. Is what you said the only reason that make this exception occur? Thanks, On Sat, Jun 13, 2015 at 5:40 AM, Đạt Cao Mạnh wrote: > Hi, the total number of documents in an index of lucene is > Integer.MAX_VALUE. So using a single