Maryam wrote:
Hi,
I have written this piece of code to read the index,
mainly to see what terms are in each document and what
the frequency of each term in the document is. This
piece of code correctly calculates the number of docs
in the index, but I don’t know why variable
myTermFreq[] is null. Would you please let me know
your idea bout it?

From TFJD:
   Return an array of term frequency vectors for the specified document.
   The array contains a vector for each vectorized field in the
   document.  Each vector contains terms and frequencies for all terms
   in a given vectorized field.  If no such fields existed, the method
   returns null.

i.e. you may not have stored the term vectors when indexing the data.

Daniel



--
Daniel Noll

Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, Australia    Ph: +61 2 9280 0699
Web: http://nuix.com/                               Fax: +61 2 9212 6902

This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to