Re: How to get the number of unique terms in the inverted index

2010-05-27 Thread kannan chandrasekaran
missing something thats very obvious... Thanks Kannan On Thu, May 27, 2010 at 2:32 PM, kannan chandrasekaran wrote: > I was wondering �if there is a way to retrieve the number of unique terms in > the lucene ( version 2.4.0) ... I am aware of the terms() && terms(Term) method th

Re: How to get the number of unique terms in the inverted index

2010-05-27 Thread kannan chandrasekaran
Uwe, I now see the problem with overlapping terms across segments...Thanks... Erik, Good point...My usecase for this is , I am trying to build vectors for individual terms and documents and I need to know the size to handle memory constraints Thanks Kannan

Re: How to get the number of unique terms in the inverted index

2010-05-27 Thread kannan chandrasekaran
this is I wonder if this is an XY problem, see: http://people.apache.org/~hossman/#xyproblem Best Erick On Thu, May 27, 2010 at 7:49 PM, kannan chandrasekaran wrote: > Uwe, > > I now see the problem with overlapping terms across segments...Thanks... > > Erik, > > Good point..

Is the new Lucene Query parser framework compatibility with older lucene versions ?

2010-04-28 Thread kannan chandrasekaran
Hi All, I have a question regarding the new Lucene query parser framework in the contribs project. My company's project is running on top of 2.4.0 release of Lucene. I am trying to evaluate the new query parser framework that was added to the contribs project in the Lucene 2.9.0 release an

Re: Is the new Lucene Query parser framework compatibility with older lucene versions ?

2010-04-28 Thread kannan chandrasekaran
versions ? Hi Kannan, contrib-queryparser code is not compatible with 2.4 release because it uses the Attribute API, which was only introduced in 2.9. Regards, Adriano Crestani On Wed, Apr 28, 2010 at 8:44 PM, kannan chandrasekaran wrote: > Hi All, > > I have a question regardin