public class SirenField
extends org.apache.solr.schema.TextField
implements org.apache.solr.schema.SchemaAware
SirenField is the basic type for configurable tree-based data
analysis.
This field type relies on:
datatypeConfig
This field type enforces certain field properties
by throwing a SolrException if the field type does not set properly
the properties. By default all the properties are set properly, i.e.,
a user should not modify these properties. This field type enforces also
the postingsFormat to Siren10Afor. The list of
enforced field properties are:
A SchemaField can overwrite these properties, however an exception
will be thrown when converting it to a Lucene's
FieldType in
createField(SchemaField, Object, float).
This field type extends TextField to have the
FieldProperties.OMIT_TF_POSITIONS set to false by default.
autoGeneratePhraseQueries, multiTermAnalyzer| Constructor and Description |
|---|
SirenField() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.index.IndexableField |
createField(org.apache.solr.schema.SchemaField field,
Object value,
float boost) |
protected org.apache.lucene.index.IndexableField |
createField(String name,
String val,
org.apache.lucene.document.FieldType type,
float boost) |
boolean |
getAutoGeneratePhraseQueries() |
Map<String,Datatype> |
getDatatypes() |
org.apache.lucene.search.Query |
getFieldQuery(org.apache.solr.search.QParser parser,
org.apache.solr.schema.SchemaField field,
String externalVal) |
org.apache.lucene.analysis.Analyzer |
getMultiTermAnalyzer() |
org.apache.lucene.search.Query |
getRangeQuery(org.apache.solr.search.QParser parser,
org.apache.solr.schema.SchemaField field,
String part1,
String part2,
boolean minInclusive,
boolean maxInclusive) |
org.apache.lucene.search.SortField |
getSortField(org.apache.solr.schema.SchemaField field,
boolean reverse) |
void |
inform(org.apache.solr.schema.IndexSchema schema)
When index schema is informed, load the datatype config and append the
SIREn's filters to the tokenizer chain.
|
protected void |
init(org.apache.solr.schema.IndexSchema schema,
Map<String,String> args) |
void |
setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer) |
void |
setQueryAnalyzer(org.apache.lucene.analysis.Analyzer analyzer) |
void |
write(org.apache.solr.response.TextResponseWriter writer,
String name,
org.apache.lucene.index.IndexableField f) |
analyzeMultiTerm, setMultiTermAnalyzer, toObjectcheckSchemaField, createFields, getAnalyzer, getArg, getIndexOptions, getPostingsFormat, getQueryAnalyzer, getSimilarity, getStringSort, getTypeName, getValueSource, hasProperty, indexedToReadable, indexedToReadable, isMultiValued, isPolyField, isTokenized, multiValuedFieldCache, readableToIndexed, readableToIndexed, restrictProps, setSimilarity, storedToIndexed, storedToReadable, toExternal, toInternal, toObject, toStringprotected void init(org.apache.solr.schema.IndexSchema schema,
Map<String,String> args)
init in class org.apache.solr.schema.TextFieldpublic org.apache.lucene.index.IndexableField createField(org.apache.solr.schema.SchemaField field,
Object value,
float boost)
createField in class org.apache.solr.schema.FieldTypeprotected org.apache.lucene.index.IndexableField createField(String name, String val, org.apache.lucene.document.FieldType type, float boost)
createField in class org.apache.solr.schema.FieldTypepublic org.apache.lucene.search.SortField getSortField(org.apache.solr.schema.SchemaField field,
boolean reverse)
getSortField in class org.apache.solr.schema.TextFieldpublic void write(org.apache.solr.response.TextResponseWriter writer,
String name,
org.apache.lucene.index.IndexableField f)
throws IOException
write in class org.apache.solr.schema.TextFieldIOExceptionpublic org.apache.lucene.search.Query getFieldQuery(org.apache.solr.search.QParser parser,
org.apache.solr.schema.SchemaField field,
String externalVal)
getFieldQuery in class org.apache.solr.schema.TextFieldpublic org.apache.lucene.search.Query getRangeQuery(org.apache.solr.search.QParser parser,
org.apache.solr.schema.SchemaField field,
String part1,
String part2,
boolean minInclusive,
boolean maxInclusive)
getRangeQuery in class org.apache.solr.schema.TextFieldpublic org.apache.lucene.analysis.Analyzer getMultiTermAnalyzer()
getMultiTermAnalyzer in class org.apache.solr.schema.TextFieldpublic boolean getAutoGeneratePhraseQueries()
getAutoGeneratePhraseQueries in class org.apache.solr.schema.TextFieldpublic void setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
setAnalyzer in class org.apache.solr.schema.TextFieldpublic void setQueryAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
setQueryAnalyzer in class org.apache.solr.schema.TextFieldpublic void inform(org.apache.solr.schema.IndexSchema schema)
inform in interface org.apache.solr.schema.SchemaAwareCopyright © 2014. All rights reserved.