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.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
|
Modifier and Type | Method and Description |
---|---|
static StatsValues |
StatsValuesFactory.createStatsValues(SchemaField sf)
Creates an instance of StatsValues which supports values from a field of the given FieldType
|
Constructor and Description |
---|
FieldFacetStats(SolrIndexSearcher searcher,
String name,
SchemaField field_sf,
SchemaField facet_sf) |
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
|
Modifier and Type | Method and Description |
---|---|
Object |
BinaryResponseWriter.Resolver.getValue(SchemaField sf,
IndexableField f) |
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
|
protected SchemaField |
AbstractSubTypeFieldType.subField(SchemaField base,
int i) |
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 |
---|---|
void |
TrieField.checkSchemaField(SchemaField field) |
void |
TrieDateField.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 |
CurrencyField.checkSchemaField(SchemaField field) |
IndexableField |
TrieField.createField(SchemaField field,
Object value,
float boost) |
IndexableField |
TrieDateField.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 |
DateField.createField(SchemaField field,
Object value,
float boost)
Deprecated.
|
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> |
TrieDateField.createFields(SchemaField field,
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> |
CurrencyField.createFields(SchemaField field,
Object externalVal,
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 FieldInfo.IndexOptions |
FieldType.getIndexOptions(SchemaField field,
String internalVal) |
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) |
Query |
DateField.getRangeQuery(QParser parser,
SchemaField sf,
Date part1,
Date part2,
boolean minInclusive,
boolean maxInclusive)
Deprecated.
DateField specific range query
|
Query |
TrieField.getRangeQuery(QParser parser,
SchemaField field,
String min,
String max,
boolean minInclusive,
boolean maxInclusive) |
Query |
TrieDateField.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 |
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 |
TrieDateField.getSortField(SchemaField field,
boolean top) |
SortField |
TextField.getSortField(SchemaField field,
boolean reverse) |
SortField |
StrField.getSortField(SchemaField field,
boolean reverse) |
SortField |
SortableLongField.getSortField(SchemaField field,
boolean reverse)
Deprecated.
|
SortField |
SortableIntField.getSortField(SchemaField field,
boolean reverse)
Deprecated.
|
SortField |
SortableFloatField.getSortField(SchemaField field,
boolean reverse)
Deprecated.
|
SortField |
SortableDoubleField.getSortField(SchemaField field,
boolean reverse)
Deprecated.
|
SortField |
ShortField.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 |
LongField.getSortField(SchemaField field,
boolean reverse) |
SortField |
LatLonType.getSortField(SchemaField field,
boolean top) |
SortField |
IntField.getSortField(SchemaField field,
boolean reverse) |
SortField |
GeoHashField.getSortField(SchemaField field,
boolean top) |
SortField |
FloatField.getSortField(SchemaField field,
boolean reverse) |
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 |
DoubleField.getSortField(SchemaField field,
boolean reverse) |
SortField |
DateField.getSortField(SchemaField field,
boolean reverse)
Deprecated.
|
SortField |
CurrencyField.getSortField(SchemaField field,
boolean reverse) |
SortField |
CollationField.getSortField(SchemaField field,
boolean top) |
SortField |
ByteField.getSortField(SchemaField field,
boolean reverse) |
SortField |
BoolField.getSortField(SchemaField field,
boolean reverse) |
SortField |
BinaryField.getSortField(SchemaField field,
boolean top) |
SortField |
BCDIntField.getSortField(SchemaField field,
boolean reverse) |
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.
|
ValueSource |
TrieField.getValueSource(SchemaField field,
QParser qparser) |
ValueSource |
TrieDateField.getValueSource(SchemaField field,
QParser parser) |
ValueSource |
StrField.getValueSource(SchemaField field,
QParser parser) |
ValueSource |
SortableLongField.getValueSource(SchemaField field,
QParser qparser)
Deprecated.
|
ValueSource |
SortableIntField.getValueSource(SchemaField field,
QParser qparser)
Deprecated.
|
ValueSource |
SortableFloatField.getValueSource(SchemaField field,
QParser qparser)
Deprecated.
|
ValueSource |
SortableDoubleField.getValueSource(SchemaField field,
QParser qparser)
Deprecated.
|
ValueSource |
ShortField.getValueSource(SchemaField field,
QParser qparser) |
ValueSource |
RandomSortField.getValueSource(SchemaField field,
QParser qparser) |
ValueSource |
PointType.getValueSource(SchemaField field,
QParser parser) |
ValueSource |
LongField.getValueSource(SchemaField field,
QParser qparser) |
ValueSource |
LatLonType.getValueSource(SchemaField field,
QParser parser) |
ValueSource |
IntField.getValueSource(SchemaField field,
QParser qparser) |
ValueSource |
GeoHashField.getValueSource(SchemaField field,
QParser parser) |
ValueSource |
FloatField.getValueSource(SchemaField field,
QParser qparser) |
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 |
DoubleField.getValueSource(SchemaField field,
QParser qparser) |
ValueSource |
DateField.getValueSource(SchemaField field,
QParser parser)
Deprecated.
|
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 it's most granular form based
on the default fractional digits.
|
ValueSource |
ByteField.getValueSource(SchemaField field,
QParser qparser) |
ValueSource |
BoolField.getValueSource(SchemaField field,
QParser qparser) |
ValueSource |
BCDIntField.getValueSource(SchemaField field,
QParser qparser) |
ValueSource |
AbstractSpatialFieldType.getValueSource(SchemaField field,
QParser parser) |
boolean |
IndexSchema.isCopyFieldTarget(SchemaField f)
Check if a field is used as the destination of a copyField operation
|
void |
IndexSchema.registerDynamicFields(SchemaField... fields)
Register one or more new Dynamic Fields with the Schema.
|
protected SchemaField |
AbstractSubTypeFieldType.subField(SchemaField base,
int i) |
Object |
TrieField.toObject(SchemaField sf,
BytesRef term) |
Object |
TrieDateField.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) |
Object |
BoolField.toObject(SchemaField sf,
BytesRef term) |
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 |
Constructor and Description |
---|
SpatialOptions(String pointStr,
double dist,
SchemaField sf,
String measStr,
double radius) |
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 | Method and Description |
---|---|
void |
DocumentBuilder.addField(SchemaField sfield,
String val,
float boost)
Add the specified
SchemaField to the document. |
protected void |
DocumentBuilder.addSingleField(SchemaField sfield,
String val,
float boost) |
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.