LUCENE-2621: add description of new term vectors API

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1304505 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2012-03-23 17:23:50 +00:00
parent 56a177774e
commit 9f186982aa
1 changed files with 8 additions and 0 deletions

View File

@ -614,3 +614,11 @@ you can now do this:
* LUCENE-3687: Similarity#computeNorm() now expects a Norm object to set the computed * LUCENE-3687: Similarity#computeNorm() now expects a Norm object to set the computed
norm value instead of returning a fixed single byte value. Custom similarities can now norm value instead of returning a fixed single byte value. Custom similarities can now
set integer, float and byte values if a single byte is not sufficient. set integer, float and byte values if a single byte is not sufficient.
* LUCENE-2621: Term vectors are now accessed via flexible indexing API.
If you used IndexReader.getTermFreqVector/s before, you should now
use IndexReader.getTermVectors. The new method returns a Fields
instance exposing the inverted index of the one document. From
Fields you can enumerate all fields, terms, positions, offsets.