lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <...@thetaphi.de>
Subject RE: TermFreqVector cannot be resolved to a type
Date Tue, 15 May 2012 17:05:38 GMT
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: uwe@thetaphi.de


> -----Original Message-----
> From: Aoi Morida [mailto:xu.xumiao@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.


Mime
View raw message