Method Summary |
|
public Analyzer | getAnalyzer() Returns the Analyzer used when indexing documents for this index
This Analyzer is field (and dynamic field) name aware, and delegates to
a field specific Analyzer based on the field type. |
public SchemaField[] | getCopyFields(String sourceField) Get all copy fields, both the static and the dynamic ones. |
public String | getDefaultSearchFieldName() |
public FieldType | getDynamicFieldType(String fieldName) |
public SchemaField | getField(String fieldName) |
public SchemaField | getFieldOrNull(String fieldName) Returns the SchemaField that should be used for the specified field name, or
null if none exists. |
public FieldType | getFieldType(String fieldName) Returns the FieldType for the specified field name. |
public FieldType | getFieldTypeNoEx(String fieldName) Returns the FieldType for the specified field name.
This method exists because it can be more efficient then
IndexSchema.getField for dynamic fields if a full SchemaField isn't needed.
Parameters: fieldName - may be an explicitly created field, or a name thatexcercies a dynamic field. |
public Map<String, FieldType> | getFieldTypes() Provides direct access to the Map containing all Field Types
in the index, keyed on fild type name. |
public Map<String, SchemaField> | getFields() Provides direct access to the Map containing all explicit
(ie: non-dynamic) fields in the index, keyed on field name. |
public List<SchemaField> | getFieldsWithDefaultValue() |
public InputStream | getInputStream() Direct acess to the InputStream for the schemaFile used by this instance. |
public String | getName() |
public Analyzer | getQueryAnalyzer() Returns the Analyzer used when searching this index
This Analyzer is field (and dynamic field) name aware, and delegates to
a field specific Analyzer based on the field type. |
public String | getQueryParserDefaultOperator() |
public Collection<SchemaField> | getRequiredFields() Provides direct access to the List containing all required fields. |
public Similarity | getSimilarity() |
public SolrQueryParser | getSolrQueryParser(String defaultField) A SolrQueryParser linked to this IndexSchema for field datatype
information, and populated with default options from the
<solrQueryParser> configuration for this IndexSchema. |
public SchemaField | getUniqueKeyField() |
public Fieldable | getUniqueKeyField(org.apache.lucene.document.Document doc) |
float | getVersion() |
public boolean | hasExplicitField(String fieldName) Does the schema have the specified field defined explicitly, i.e. |
public String | printableUniqueKey(org.apache.lucene.document.Document doc) |