LUCENE-3925 RecursivePrefixTree spatial strategy should not store doc freq or pos

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1366477 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David Wayne Smiley 2012-07-27 18:25:49 +00:00
parent f98ab9d2dc
commit 6e91227797
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@ import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;
import org.apache.lucene.document.Field;
import org.apache.lucene.document.FieldType;
import org.apache.lucene.index.FieldInfo;
import org.apache.lucene.index.IndexableField;
import org.apache.lucene.queries.function.ValueSource;
import org.apache.lucene.spatial.SpatialStrategy;
@ -88,6 +89,7 @@ public abstract class PrefixTreeStrategy extends SpatialStrategy {
FIELD_TYPE.setIndexed(true);
FIELD_TYPE.setTokenized(true);
FIELD_TYPE.setOmitNorms(true);
FIELD_TYPE.setIndexOptions(FieldInfo.IndexOptions.DOCS_ONLY);
FIELD_TYPE.freeze();
}