You should fix your classpath, it may contain different Lucene versions! ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de
> -----Original Message----- > From: Aoi Morida [mailto:xu.xum...@gmail.com] > Sent: Monday, May 14, 2012 10:19 PM > To: general@lucene.apache.org > Subject: TermFreqVector cannot be resolved to a type > > Hi all, > > I am using lucene to do index and I want to get the term frequency vector. > > I use this code: > Directory directory = FSDirectory.getDirectory(INDEX_DIRECTORY); > IndexReader indexReader = IndexReader.open(directory); TermFreqVector > vector=indexReader.getTermFreqVector(1, "subject"); > > But eclipse always tells me that TermFreqVector cannot be resolved to a type. > > I cannot figure out what's wrong. > > Regards, > > Aoi > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/TermFreqVector-cannot-be-resolved-to-a- > type-tp3983748.html > Sent from the Lucene - General mailing list archive at Nabble.com.