org.apache.solr.schema
Class CompressableField
java.lang.Object
org.apache.solr.schema.FieldType
org.apache.solr.schema.CompressableField
- Direct Known Subclasses:
- StrField, TextField
public abstract class CompressableField
- extends FieldType
CompressableField
is an abstract field type which enables a
field to be compressed (by specifying compressed="true"
at the
field definition level) and provides optional support for specifying a
threshold at which compression is enabled.
Optional settings:
compressThreshold
: length, in characters, at which point the
field contents should be compressed [default: 0]
TODO: Enable compression level specification (not yet in lucene)
- Version:
- $Id: CompressableField.java 565144 2007-08-12 20:47:42Z ryan $
Methods inherited from class org.apache.solr.schema.FieldType |
createField, getAnalyzer, getArg, getFieldIndex, getFieldTermVec, getQueryAnalyzer, getRangeQuery, getSortField, getStringSort, getTypeName, getValueSource, getValueSource, indexedToReadable, isMultiValued, isTokenized, multiValuedFieldCache, readableToIndexed, restrictProps, setAnalyzer, setQueryAnalyzer, storedToIndexed, storedToReadable, toExternal, toInternal, toObject, toString, write, write |
DEFAULT_COMPRESS_THRESHOLD
public static int DEFAULT_COMPRESS_THRESHOLD
CompressableField
public CompressableField()
init
protected void init(IndexSchema schema,
Map<String,String> args)
- Description copied from class:
FieldType
- subclasses should initialize themselves with the args provided
and remove valid arguments. leftover arguments will cause an exception.
Common boolean properties have already been handled.
- Overrides:
init
in class FieldType
getFieldStore
protected Field.Store getFieldStore(SchemaField field,
String internalVal)
- Overrides:
getFieldStore
in class FieldType
Copyright © 2010 Apache Software Foundation. All Rights Reserved.