Can you post the code you're using to create the Document and adding it to the IndexWriter? You have to tell lucene to store term freq vectors (it isn't done by default). Also I'm not sure what you mean when you say your documents do not have fields. Do you have at least one field?
-chris On 11/17/05, Anna Buczak <[EMAIL PROTECTED]> wrote: > I have indexed a set of documents that do not have fields. I want to > use the getTermFreqVector method from IndexReader to get the > frequencies. However when I do that as: > > TermFreqVector[] z = ir.getTermFreqVectors(0); > > z is null. So I can't get the frequency vectors. > > Help will be very much appreciated. > > Anna > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]