Package | Description |
---|---|
org.apache.solr.handler.component |
SearchComponent implementations for
use in SearchHandler |
org.apache.solr.request |
APIs and classes for dealing with Solr requests
|
org.apache.solr.response |
API and implementations of
QueryResponseWriter for formating Solr request responses |
org.apache.solr.schema |
IndexSchema and FieldType implementations for powering schema.xml |
org.apache.solr.search |
APIs and classes for parsing and processing search requests
|
org.apache.solr.search.facet |
APIs and classes for the JSON Facet API.
|
org.apache.solr.search.function |
Solr implementations of
ValueSource for function queries. |
org.apache.solr.search.grouping.distributed.command |
Internal classes used to implement distributed result grouping
|
org.apache.solr.search.grouping.distributed.shardresultserializer |
Internal classes used to implement distributed result grouping
|
org.apache.solr.update |
APIs and classes for managing index updates
|
org.apache.solr.update.processor |
UpdateRequestProcessorFactory APIs and implementations for use in UpdateRequestProcessorChain s |
Modifier and Type | Method and Description |
---|---|
SchemaField |
StatsField.getSchemaField()
The
SchemaField whose results these stats are computed over, may be null
if the stats are computed over the results of a function or query |
Constructor and Description |
---|
FieldFacetStats(SolrIndexSearcher searcher,
SchemaField facet_sf,
StatsField statsField) |
Modifier and Type | Method and Description |
---|---|
protected int |
SimpleFacets.rangeCount(SchemaField sf,
Date low,
Date high,
boolean iLow,
boolean iHigh)
Deprecated.
Use rangeCount(SchemaField,String,String,boolean,boolean) which is more generalized
|
protected int |
SimpleFacets.rangeCount(SchemaField sf,
String low,
String high,
boolean iLow,
boolean iHigh)
Macro for getting the numDocs of range over docs
|
Constructor and Description |
---|
IntervalFacets(SchemaField schemaField,
SolrIndexSearcher searcher,
DocSet docs,
String[] intervals,
SolrParams params) |
Modifier and Type | Method and Description |
---|---|
Object |
BinaryResponseWriter.Resolver.getValue(SchemaField sf,
IndexableField f) |
Modifier and Type | Field and Description |
---|---|
protected SchemaField |
IndexSchema.uniqueKeyField |
Modifier and Type | Field and Description |
---|---|
protected Map<SchemaField,Integer> |
IndexSchema.copyFieldTargetCounts
keys are all fields copied to, count is num of copyField
directives that target them.
|
protected Map<String,SchemaField> |
IndexSchema.fields |
protected List<SchemaField> |
IndexSchema.fieldsWithDefaultValue |
protected Collection<SchemaField> |
IndexSchema.requiredFields |
Modifier and Type | Method and Description |
---|---|
SchemaField |
CopyField.getDestination() |
SchemaField[] |
IndexSchema.getDynamicFieldPrototypes() |
SchemaField |
IndexSchema.getField(String fieldName)
Returns the SchemaField that should be used for the specified field name
|
SchemaField |
IndexSchema.getFieldOrNull(String fieldName)
Returns the SchemaField that should be used for the specified field name, or
null if none exists.
|
SchemaField |
IndexSchema.DynamicField.getPrototype() |
SchemaField |
CopyField.getSource() |
SchemaField |
IndexSchema.DynamicCopy.getTargetField(String sourceField)
Generates a destination field name based on this source pattern,
by substituting the remainder of this source pattern into the
the given destination pattern.
|
SchemaField |
IndexSchema.getUniqueKeyField()
Unique Key field specified in the schema file
|
SchemaField |
ManagedIndexSchema.newDynamicField(String fieldNamePattern,
String fieldType,
Map<String,?> options) |
SchemaField |
IndexSchema.newDynamicField(String fieldNamePattern,
String fieldType,
Map<String,?> options)
Returns a SchemaField if the given dynamic field glob does not already
exist in this schema, and does not match any dynamic fields
in this schema.
|
SchemaField |
ManagedIndexSchema.newField(String fieldName,
String fieldType,
Map<String,?> options) |
SchemaField |
IndexSchema.newField(String fieldName,
String fieldType,
Map<String,?> options)
Returns a SchemaField if the given fieldName does not already
exist in this schema, and does not match any dynamic fields
in this schema.
|
protected SchemaField |
AbstractSubTypeFieldType.subField(SchemaField base,
int i,
IndexSchema schema) |
Modifier and Type | Method and Description |
---|---|
Map<String,SchemaField> |
IndexSchema.getFields()
Provides direct access to the Map containing all explicit
(ie: non-dynamic) fields in the index, keyed on field name.
|
List<SchemaField> |
IndexSchema.getFieldsWithDefaultValue()
Provides direct access to the List containing all fields with a default value
|
Collection<SchemaField> |
IndexSchema.getRequiredFields()
Provides direct access to the List containing all required fields.
|
Modifier and Type | Method and Description |
---|---|
IndexSchema |
IndexSchema.addField(SchemaField newField) |
IndexSchema |
IndexSchema.addField(SchemaField newField,
boolean persist)
Copies this schema, adds the given field to the copy
Requires synchronizing on the object returned by
IndexSchema.getSchemaUpdateLock() . |
IndexSchema |
IndexSchema.addField(SchemaField newField,
Collection<String> copyFieldNames)
Copies this schema, adds the given field to the copy
Requires synchronizing on the object returned by
IndexSchema.getSchemaUpdateLock() . |
void |
TrieField.checkSchemaField(SchemaField field) |
void |
StrField.checkSchemaField(SchemaField field) |
void |
FieldType.checkSchemaField(SchemaField field)
Check's
SchemaField instances constructed
using this field type to ensure that they are valid. |
void |
EnumField.checkSchemaField(SchemaField field)
Check's
SchemaField instances constructed
using this field type to ensure that they are valid. |
void |
CurrencyField.checkSchemaField(SchemaField field) |
void |
CollationField.checkSchemaField(SchemaField field) |
IndexableField |
TrieField.createField(SchemaField field,
Object value,
float boost) |
IndexableField |
PreAnalyzedField.createField(SchemaField field,
Object value,
float boost) |
IndexableField |
PointType.createField(SchemaField field,
Object value,
float boost)
It never makes sense to create a single field, so make it impossible to happen by
throwing UnsupportedOperationException
|
IndexableField |
LatLonType.createField(SchemaField field,
Object value,
float boost) |
IndexableField |
FieldType.createField(SchemaField field,
Object value,
float boost)
Used for adding a document when a field needs to be created from a
type and a string.
|
IndexableField |
EnumField.createField(SchemaField field,
Object value,
float boost)
Used for adding a document when a field needs to be created from a
type and a string.
|
IndexableField |
BinaryField.createField(SchemaField field,
Object val,
float boost) |
Field |
AbstractSpatialFieldType.createField(SchemaField field,
Object val,
float boost) |
List<IndexableField> |
TrieField.createFields(SchemaField sf,
Object value,
float boost) |
List<IndexableField> |
StrField.createFields(SchemaField field,
Object value,
float boost) |
List<IndexableField> |
PointType.createFields(SchemaField field,
Object value,
float boost) |
List<IndexableField> |
LatLonType.createFields(SchemaField field,
Object value,
float boost) |
List<IndexableField> |
FieldType.createFields(SchemaField field,
Object value,
float boost)
Given a
SchemaField , create one or more IndexableField instances |
List<IndexableField> |
EnumField.createFields(SchemaField sf,
Object value,
float boost)
Given a
SchemaField , create one or more IndexableField instances |
List<IndexableField> |
DateRangeField.createFields(SchemaField field,
Object val,
float boost) |
List<IndexableField> |
CurrencyField.createFields(SchemaField field,
Object externalVal,
float boost) |
List<IndexableField> |
CollationField.createFields(SchemaField field,
Object value,
float boost) |
List<IndexableField> |
AbstractSpatialFieldType.createFields(SchemaField field,
Object val,
float boost) |
static FieldType |
PreAnalyzedField.createFieldType(SchemaField field)
Utility method to create a
FieldType
based on the SchemaField |
IndexableField |
PreAnalyzedField.fromString(SchemaField field,
String val,
float boost) |
Query |
TrieField.getFieldQuery(QParser parser,
SchemaField field,
String externalVal) |
Query |
TextField.getFieldQuery(QParser parser,
SchemaField field,
String externalVal) |
Query |
PointType.getFieldQuery(QParser parser,
SchemaField field,
String externalVal) |
Query |
LatLonType.getFieldQuery(QParser parser,
SchemaField field,
String externalVal) |
Query |
FieldType.getFieldQuery(QParser parser,
SchemaField field,
String externalVal)
Returns a Query instance for doing searches against a field.
|
Query |
CurrencyField.getFieldQuery(QParser parser,
SchemaField field,
String externalVal) |
Query |
AbstractSubTypeFieldType.getFieldQuery(QParser parser,
SchemaField field,
String externalVal)
Throws UnsupportedOperationException()
|
Query |
AbstractSpatialFieldType.getFieldQuery(QParser parser,
SchemaField field,
String externalVal) |
FileFloatSource |
ExternalFileField.getFileFloatSource(SchemaField field)
Get a FileFloatSource for the given field, using the datadir from the
IndexSchema
|
FileFloatSource |
ExternalFileField.getFileFloatSource(SchemaField field,
String datadir)
Get a FileFloatSource for the given field.
|
protected IndexOptions |
FieldType.getIndexOptions(SchemaField field,
String internalVal) |
Query |
FieldType.getPrefixQuery(QParser parser,
SchemaField sf,
String termStr)
Returns a Query instance for doing prefix searches on this field type.
|
protected Query |
AbstractSpatialFieldType.getQueryFromSpatialArgs(QParser parser,
SchemaField field,
SpatialArgs spatialArgs) |
Query |
CurrencyField.getRangeQuery(QParser parser,
SchemaField field,
org.apache.solr.schema.CurrencyValue p1,
org.apache.solr.schema.CurrencyValue p2,
boolean minInclusive,
boolean maxInclusive) |
Query |
TrieDateField.getRangeQuery(QParser parser,
SchemaField sf,
Date min,
Date max,
boolean minInclusive,
boolean maxInclusive)
TrieDateField specific range query
|
Query |
TrieField.getRangeQuery(QParser parser,
SchemaField field,
String min,
String max,
boolean minInclusive,
boolean maxInclusive) |
Query |
TextField.getRangeQuery(QParser parser,
SchemaField field,
String part1,
String part2,
boolean minInclusive,
boolean maxInclusive) |
Query |
PointType.getRangeQuery(QParser parser,
SchemaField field,
String part1,
String part2,
boolean minInclusive,
boolean maxInclusive) |
Query |
LatLonType.getRangeQuery(QParser parser,
SchemaField field,
String part1,
String part2,
boolean minInclusive,
boolean maxInclusive) |
Query |
FieldType.getRangeQuery(QParser parser,
SchemaField field,
String part1,
String part2,
boolean minInclusive,
boolean maxInclusive)
Returns a Query instance for doing range searches on this field type.
|
Query |
EnumField.getRangeQuery(QParser parser,
SchemaField field,
String min,
String max,
boolean minInclusive,
boolean maxInclusive)
Returns a Query instance for doing range searches on this field type.
|
Query |
DateRangeField.getRangeQuery(QParser parser,
SchemaField field,
String startStr,
String endStr,
boolean minInclusive,
boolean maxInclusive) |
Query |
CurrencyField.getRangeQuery(QParser parser,
SchemaField field,
String part1,
String part2,
boolean minInclusive,
boolean maxInclusive) |
Query |
CollationField.getRangeQuery(QParser parser,
SchemaField field,
String part1,
String part2,
boolean minInclusive,
boolean maxInclusive) |
Query |
AbstractSpatialFieldType.getRangeQuery(QParser parser,
SchemaField field,
String part1,
String part2,
boolean minInclusive,
boolean maxInclusive) |
MultiTermQuery.RewriteMethod |
FieldType.getRewriteMethod(QParser parser,
SchemaField field)
Expert: Returns the rewrite method for multiterm queries such as wildcards.
|
SortField |
UUIDField.getSortField(SchemaField field,
boolean reverse) |
SortField |
TrieField.getSortField(SchemaField field,
boolean top) |
SortField |
TextField.getSortField(SchemaField field,
boolean reverse) |
SortField |
StrField.getSortField(SchemaField field,
boolean reverse) |
SortField |
RandomSortField.getSortField(SchemaField field,
boolean reverse) |
SortField |
PreAnalyzedField.getSortField(SchemaField field,
boolean top) |
SortField |
PointType.getSortField(SchemaField field,
boolean top) |
SortField |
LatLonType.getSortField(SchemaField field,
boolean top) |
SortField |
GeoHashField.getSortField(SchemaField field,
boolean top) |
abstract SortField |
FieldType.getSortField(SchemaField field,
boolean top)
Returns the SortField instance that should be used to sort fields
of this type.
|
SortField |
ExternalFileField.getSortField(SchemaField field,
boolean reverse) |
SortField |
EnumField.getSortField(SchemaField field,
boolean top)
Returns the SortField instance that should be used to sort fields
of this type.
|
SortField |
CurrencyField.getSortField(SchemaField field,
boolean reverse) |
SortField |
CollationField.getSortField(SchemaField field,
boolean top) |
SortField |
BoolField.getSortField(SchemaField field,
boolean reverse) |
SortField |
BinaryField.getSortField(SchemaField field,
boolean top) |
SortField |
AbstractSpatialFieldType.getSortField(SchemaField field,
boolean top) |
protected SortField |
FieldType.getStringSort(SchemaField field,
boolean reverse)
Utility usable by subclasses when they want to get basic String sorting
using common checks.
|
UninvertingReader.Type |
TrieField.getUninversionType(SchemaField sf) |
UninvertingReader.Type |
TextField.getUninversionType(SchemaField sf) |
UninvertingReader.Type |
StrField.getUninversionType(SchemaField sf) |
UninvertingReader.Type |
RandomSortField.getUninversionType(SchemaField sf) |
UninvertingReader.Type |
PreAnalyzedField.getUninversionType(SchemaField sf) |
UninvertingReader.Type |
PointType.getUninversionType(SchemaField sf) |
UninvertingReader.Type |
LatLonType.getUninversionType(SchemaField sf) |
UninvertingReader.Type |
GeoHashField.getUninversionType(SchemaField sf) |
abstract UninvertingReader.Type |
FieldType.getUninversionType(SchemaField sf)
DocValues is not enabled for a field, but it's indexed, docvalues can be constructed
on the fly (uninverted, aka fieldcache) on the first request to sort, facet, etc.
|
UninvertingReader.Type |
ExternalFileField.getUninversionType(SchemaField sf) |
UninvertingReader.Type |
EnumField.getUninversionType(SchemaField sf) |
UninvertingReader.Type |
CurrencyField.getUninversionType(SchemaField sf) |
UninvertingReader.Type |
CollationField.getUninversionType(SchemaField sf) |
UninvertingReader.Type |
BoolField.getUninversionType(SchemaField sf) |
UninvertingReader.Type |
BinaryField.getUninversionType(SchemaField sf) |
UninvertingReader.Type |
AbstractSpatialFieldType.getUninversionType(SchemaField sf) |
ValueSource |
TrieField.getValueSource(SchemaField field,
QParser qparser) |
ValueSource |
TextField.getValueSource(SchemaField field,
QParser parser) |
ValueSource |
StrField.getValueSource(SchemaField field,
QParser parser) |
ValueSource |
RandomSortField.getValueSource(SchemaField field,
QParser qparser) |
ValueSource |
PreAnalyzedField.getValueSource(SchemaField field,
QParser parser) |
ValueSource |
PointType.getValueSource(SchemaField field,
QParser parser) |
ValueSource |
LatLonType.getValueSource(SchemaField field,
QParser parser) |
ValueSource |
GeoHashField.getValueSource(SchemaField field,
QParser parser) |
ValueSource |
FieldType.getValueSource(SchemaField field,
QParser parser)
called to get the default value source (normally, from the
Lucene FieldCache.)
|
ValueSource |
ExternalFileField.getValueSource(SchemaField field,
QParser parser) |
ValueSource |
EnumField.getValueSource(SchemaField field,
QParser qparser)
called to get the default value source (normally, from the
Lucene FieldCache.)
|
org.apache.solr.schema.CurrencyField.RawCurrencyValueSource |
CurrencyField.getValueSource(SchemaField field,
QParser parser)
Returns a ValueSource over this field in which the numeric value for
each document represents the indexed value as converted to the default
currency for the field, normalized to its most granular form based
on the default fractional digits.
|
ValueSource |
BoolField.getValueSource(SchemaField field,
QParser qparser) |
ValueSource |
AbstractSpatialFieldType.getValueSource(SchemaField field,
QParser parser) |
protected ValueSource |
BBoxField.getValueSourceFromSpatialArgs(QParser parser,
SchemaField field,
SpatialArgs spatialArgs,
String scoreParam,
BBoxStrategy strategy) |
protected ValueSource |
AbstractSpatialFieldType.getValueSourceFromSpatialArgs(QParser parser,
SchemaField field,
SpatialArgs spatialArgs,
String score,
T strategy) |
boolean |
IndexSchema.isCopyFieldTarget(SchemaField f)
Check if a field is used as the destination of a copyField operation
|
protected boolean |
IndexSchema.isDuplicateDynField(List<IndexSchema.DynamicField> dFields,
SchemaField f) |
protected boolean |
IndexSchema.isValidDynamicField(List<IndexSchema.DynamicField> dFields,
SchemaField f) |
void |
IndexSchema.registerDynamicFields(SchemaField... fields)
Register one or more new Dynamic Fields with the Schema.
|
protected void |
IndexSchema.registerExplicitSrcAndDestFields(String source,
int maxChars,
SchemaField destSchemaField,
SchemaField sourceSchemaField) |
protected SchemaField |
AbstractSubTypeFieldType.subField(SchemaField base,
int i,
IndexSchema schema) |
Object |
TrieField.toObject(SchemaField sf,
BytesRef term) |
Object |
TextField.toObject(SchemaField sf,
BytesRef term) |
Object |
StrField.toObject(SchemaField sf,
BytesRef term) |
Object |
FieldType.toObject(SchemaField sf,
BytesRef term) |
EnumFieldValue |
EnumField.toObject(SchemaField sf,
BytesRef term) |
Object |
BoolField.toObject(SchemaField sf,
BytesRef term) |
Modifier and Type | Method and Description |
---|---|
ManagedIndexSchema |
ManagedIndexSchema.addDynamicFields(Collection<SchemaField> newDynamicFields,
Map<String,Collection<String>> copyFieldNames,
boolean persist) |
IndexSchema |
IndexSchema.addDynamicFields(Collection<SchemaField> newDynamicFields,
Map<String,Collection<String>> copyFieldNames,
boolean persist)
Copies this schema, adds the given dynamic fields to the copy,
Requires synchronizing on the object returned by
IndexSchema.getSchemaUpdateLock() . |
IndexSchema |
IndexSchema.addFields(Collection<SchemaField> newFields)
Copies this schema, adds the given fields to the copy
Requires synchronizing on the object returned by
IndexSchema.getSchemaUpdateLock() . |
ManagedIndexSchema |
ManagedIndexSchema.addFields(Collection<SchemaField> newFields,
Map<String,Collection<String>> copyFieldNames,
boolean persist) |
IndexSchema |
IndexSchema.addFields(Collection<SchemaField> newFields,
Map<String,Collection<String>> copyFieldNames,
boolean persist)
Copies this schema, adds the given fields to the copy.
|
Constructor and Description |
---|
CopyField(SchemaField source,
SchemaField destination) |
CopyField(SchemaField source,
SchemaField destination,
int maxChars) |
SchemaField(SchemaField prototype,
String name)
Create a new SchemaField from an existing one by using all
of the properties of the prototype except the field name.
|
Modifier and Type | Field and Description |
---|---|
SchemaField |
SpatialOptions.field |
Modifier and Type | Method and Description |
---|---|
List<SchemaField> |
SortSpec.getSchemaFields()
Gets the Solr SchemaFields that correspond to each of the SortFields used
in this sort.
|
Modifier and Type | Method and Description |
---|---|
void |
SortSpec.setSortAndFields(Sort s,
List<SchemaField> fields)
the specified SchemaFields must correspond one to one with the Sort's SortFields,
using null where appropriate.
|
Constructor and Description |
---|
SortSpec(Sort sort,
SchemaField[] fields) |
SpatialOptions(String pointStr,
double dist,
SchemaField sf,
String measStr,
double radius) |
Constructor and Description |
---|
SortSpec(Sort sort,
List<SchemaField> fields) |
Modifier and Type | Method and Description |
---|---|
static SortedDocValues |
FieldUtil.getSortedDocValues(QueryContext context,
SchemaField field,
QParser qparser) |
static SortedSetDocValues |
FieldUtil.getSortedSetDocValues(QueryContext context,
SchemaField field,
QParser qparser) |
Constructor and Description |
---|
FileFloatSource(SchemaField field,
SchemaField keyField,
float defVal,
String datadir)
Creates a new FileFloatSource
|
Modifier and Type | Method and Description |
---|---|
TopGroupsFieldCommand.Builder |
TopGroupsFieldCommand.Builder.setField(SchemaField field) |
SearchGroupsFieldCommand.Builder |
SearchGroupsFieldCommand.Builder.setField(SchemaField field) |
Modifier and Type | Method and Description |
---|---|
protected NamedList |
TopGroupsResultTransformer.serializeTopGroups(TopGroups<BytesRef> data,
SchemaField groupField) |
Modifier and Type | Field and Description |
---|---|
protected SchemaField |
UpdateHandler.idField |
Modifier and Type | Method and Description |
---|---|
static SchemaField |
VersionInfo.getAndCheckVersionField(IndexSchema schema)
Gets and returns the
VersionInfo.VERSION_FIELD from the specified
schema, after verifying that it is indexed, stored, and single-valued. |
SchemaField |
VersionInfo.getVersionField() |
Modifier and Type | Field and Description |
---|---|
protected SchemaField |
AtomicUpdateDocumentMerger.idField |
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.