mirror of https://github.com/apache/lucene.git
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:
parent
f98ab9d2dc
commit
6e91227797
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue