23 mar 2007 kl. 02.09 skrev Daniel Noll:
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.
This thread might be of interest:
http://www.nabble.com/Resolving-term-vector-even-when-not-stored--
tf3412160.html#a9507268
--
karl
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]