/[Apache-SVN]
ViewVC logotype

Revision 150157


Jump to revision: Previous Next
Author: cutting
Date: Mon Dec 22 21:40:18 2003 UTC (20 years, 10 months ago)
Changed paths: 1
Log Message:
Distinguish between positions and length when indexing a field.  The
length is now defined as the total number of tokens, not the final
position.  Length is used for score normalization
(Similarity.lengthNorm()) and for controlling memory usage
(IndexWriter.maxFieldLength).  In both cases the total number of
tokens is more reasonable than the final position.  Position is used
in phrase searching (see PhraseQuery and Token.setPositionIncrement()).


Changed paths

Path Details
Directorylucene/java/trunk/src/java/org/apache/lucene/index/DocumentWriter.java modified , text changed , props changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26