Package | Description |
---|---|
org.apache.solr.core |
Core classes implementing Solr internals and the management of
SolrCore s |
org.apache.solr.handler |
Concrete implementations of
SolrRequestHandler |
org.apache.solr.handler.component |
SearchComponent implementations for
use in SearchHandler |
org.apache.solr.highlight |
SolrHighlighter API and related implementations and utilities |
org.apache.solr.index |
Indexing related classes.
|
org.apache.solr.parser |
Solr native variant of the Lucene Classic QueryParser
|
org.apache.solr.request |
APIs and classes for dealing with Solr requests
|
org.apache.solr.response |
API and implementations of
QueryResponseWriter for formatting Solr request responses |
org.apache.solr.rest |
Solr RESTful APIs via Restlet.
|
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.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 |
org.apache.solr.util |
Common utility classes used throughout Solr
|
Modifier and Type | Method and Description |
---|---|
protected IndexSchema |
ConfigSetService.createIndexSchema(CoreDescriptor cd,
SolrConfig solrConfig)
Create an IndexSchema object for a core
|
IndexSchema |
ConfigSetService.SchemaCaching.createIndexSchema(CoreDescriptor cd,
SolrConfig solrConfig) |
IndexSchema |
ConfigSet.getIndexSchema() |
IndexSchema |
SolrCore.getLatestSchema() |
Modifier and Type | Method and Description |
---|---|
void |
SolrCore.setLatestSchema(IndexSchema replacementSchema)
Sets the latest schema snapshot to be used by this core instance.
|
Constructor and Description |
---|
ConfigSet(String name,
SolrConfig solrConfig,
IndexSchema indexSchema,
NamedList properties) |
SolrCore(String name,
String dataDir,
SolrConfig config,
IndexSchema schema,
NamedList configSetProperties,
CoreDescriptor coreDescriptor,
UpdateHandler updateHandler,
IndexDeletionPolicyWrapper delPolicy,
SolrCore prev,
boolean reload)
Creates a new core and register it in the list of cores.
|
Modifier and Type | Method and Description |
---|---|
protected NamedList<NamedList> |
FieldAnalysisRequestHandler.handleAnalysisRequest(FieldAnalysisRequest request,
IndexSchema schema)
Handles the resolved analysis request and returns the analysis breakdown response as a named list.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ResponseLogComponent.processIds(ResponseBuilder rb,
DocList dl,
IndexSchema schema,
SolrIndexSearcher searcher) |
protected void |
ResponseLogComponent.processScores(ResponseBuilder rb,
DocList dl,
IndexSchema schema,
SolrIndexSearcher searcher) |
static SolrDocument |
RealTimeGetComponent.toSolrDoc(SolrInputDocument sdoc,
IndexSchema schema)
Converts a SolrInputDocument to SolrDocument, using an IndexSchema instance.
|
protected NamedList |
QueryComponent.unmarshalSortValues(SortSpec sortSpec,
NamedList sortFieldValues,
IndexSchema schema) |
Modifier and Type | Field and Description |
---|---|
protected IndexSchema |
UnifiedSolrHighlighter.SolrExtendedUnifiedHighlighter.schema |
protected IndexSchema |
PostingsSolrHighlighter.SolrExtendedPostingsHighlighter.schema |
Modifier and Type | Field and Description |
---|---|
protected IndexSchema |
MergePolicyFactory.schema |
Modifier and Type | Field and Description |
---|---|
protected IndexSchema |
SolrQueryParserBase.schema |
Modifier and Type | Field and Description |
---|---|
protected IndexSchema |
SolrQueryRequestBase.schema |
Modifier and Type | Method and Description |
---|---|
IndexSchema |
SolrQueryRequestBase.getSchema() |
IndexSchema |
SolrQueryRequest.getSchema()
The schema snapshot from core.getLatestSchema() at request creation.
|
Modifier and Type | Field and Description |
---|---|
protected IndexSchema |
TextResponseWriter.schema |
protected IndexSchema |
BinaryResponseWriter.Resolver.schema |
Modifier and Type | Method and Description |
---|---|
static SolrDocument |
DocsStreamer.getDoc(Document doc,
IndexSchema schema) |
Modifier and Type | Method and Description |
---|---|
IndexSchema |
BaseSolrResource.getSchema() |
Modifier and Type | Class and Description |
---|---|
class |
ManagedIndexSchema
Solr-managed schema - non-user-editable, but can be mutable via internal and external REST API requests.
|
Modifier and Type | Field and Description |
---|---|
protected IndexSchema |
AbstractSubTypeFieldType.schema |
Modifier and Type | Method and Description |
---|---|
IndexSchema |
IndexSchema.addCopyFields(Map<String,Collection<String>> copyFields,
boolean persist)
Copies this schema and adds the new copy fields to the copy
Requires synchronizing on the object returned by
getSchemaUpdateLock() . |
IndexSchema |
IndexSchema.addCopyFields(String source,
Collection<String> destinations,
int maxChars)
Copies this schema and adds the new copy fields to the copy.
|
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
getSchemaUpdateLock() . |
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
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
getSchemaUpdateLock() . |
IndexSchema |
IndexSchema.addFields(Collection<SchemaField> newFields)
Copies this schema, adds the given fields to the copy.
|
IndexSchema |
IndexSchema.addFields(Collection<SchemaField> newFields,
Map<String,Collection<String>> copyFieldNames,
boolean persist)
Copies this schema, adds the given fields to the copy
Requires synchronizing on the object returned by
getSchemaUpdateLock() . |
IndexSchema |
IndexSchema.addFieldTypes(List<FieldType> fieldTypeList,
boolean persist)
Copies this schema, adds the given field type to the copy,
Requires synchronizing on the object returned by
getSchemaUpdateLock() . |
static IndexSchema |
IndexSchemaFactory.buildIndexSchema(String resourceName,
SolrConfig config)
Instantiates the configured schema factory, then calls create on it.
|
IndexSchema |
IndexSchemaFactory.create(String resourceName,
SolrConfig config)
Returns an index schema created from a local resource
|
IndexSchema |
IndexSchema.deleteCopyFields(Map<String,Collection<String>> copyFields)
Copies this schema and deletes the given copy fields from the copy.
|
IndexSchema |
IndexSchema.deleteDynamicFields(Collection<String> fieldNamePatterns)
Copies this schema, deletes the named dynamic fields from the copy.
|
IndexSchema |
IndexSchema.deleteFields(Collection<String> names)
Copies this schema, deletes the named fields from the copy.
|
IndexSchema |
IndexSchema.deleteFieldTypes(Collection<String> names)
Copies this schema, deletes the named field types from the copy.
|
IndexSchema |
IndexSchema.replaceField(String fieldName,
FieldType replacementFieldType,
Map<String,?> replacementArgs)
Copies this schema, deletes the named field from the copy, creates a new field
with the same name using the given args, then rebinds any referring copy fields
to the replacement field.
|
IndexSchema |
IndexSchema.replaceFieldType(String typeName,
String replacementClassName,
Map<String,Object> replacementArgs)
Copies this schema, deletes the named field type from the copy, creates a new field type
with the same name using the given args, rebuilds fields and dynamic fields of the given
type, then rebinds any referring copy fields to the rebuilt fields.
|
Modifier and Type | Method and Description |
---|---|
void |
ExternalFileFieldReloader.cacheFieldSources(IndexSchema schema)
Caches FileFloatSource's from all ExternalFileField instances in the schema
|
void |
SpatialPointVectorFieldType.inform(IndexSchema schema)
Adds X and Y fields to the given schema for each field with this class as its field type.
|
void |
SchemaAware.inform(IndexSchema schema)
Informs the
IndexSchema provided by the schema
parameter of an event (e.g., a new FieldType was added, etc. |
void |
LatLonPointSpatialField.inform(IndexSchema schema) |
void |
ExternalFileField.inform(IndexSchema schema) |
void |
CurrencyField.inform(IndexSchema schema)
When index schema is informed, add dynamic fields "*____currency" and "*____amount_raw".
|
void |
BBoxField.inform(IndexSchema schema) |
void |
AbstractSubTypeFieldType.inform(IndexSchema schema)
Registers the polyfield dynamic prototype for this field type: : "*___(field type name)"
Informs the
IndexSchema provided by the schema
parameter of an event (e.g., a new FieldType was added, etc. |
protected void |
UUIDField.init(IndexSchema schema,
Map<String,String> args) |
protected void |
TrieField.init(IndexSchema schema,
Map<String,String> args) |
protected void |
TextField.init(IndexSchema schema,
Map<String,String> args) |
protected void |
StrField.init(IndexSchema schema,
Map<String,String> args) |
protected void |
SpatialRecursivePrefixTreeFieldType.init(IndexSchema schema,
Map<String,String> args) |
protected void |
SpatialPointVectorFieldType.init(IndexSchema schema,
Map<String,String> args) |
protected void |
RptWithGeometrySpatialField.init(IndexSchema schema,
Map<String,String> args) |
protected void |
PrimitiveFieldType.init(IndexSchema schema,
Map<String,String> args) |
void |
PreAnalyzedField.init(IndexSchema schema,
Map<String,String> args) |
protected void |
PointType.init(IndexSchema schema,
Map<String,String> args) |
protected void |
LatLonType.init(IndexSchema schema,
Map<String,String> args) |
protected void |
FieldType.init(IndexSchema schema,
Map<String,String> args)
subclasses should initialize themselves with the args provided
and remove valid arguments.
|
protected void |
ExternalFileField.init(IndexSchema schema,
Map<String,String> args) |
protected void |
EnumField.init(IndexSchema schema,
Map<String,String> args)
subclasses should initialize themselves with the args provided
and remove valid arguments.
|
protected void |
DateRangeField.init(IndexSchema schema,
Map<String,String> args) |
protected void |
CurrencyField.init(IndexSchema schema,
Map<String,String> args) |
protected void |
CollationField.init(IndexSchema schema,
Map<String,String> args) |
protected void |
BBoxField.init(IndexSchema schema,
Map<String,String> args) |
protected void |
AbstractSubTypeFieldType.init(IndexSchema schema,
Map<String,String> args) |
protected void |
AbstractSpatialPrefixTreeFieldType.init(IndexSchema schema,
Map<String,String> args) |
protected void |
AbstractSpatialFieldType.init(IndexSchema schema,
Map<String,String> args) |
protected void |
FieldType.setArgs(IndexSchema schema,
Map<String,String> args) |
protected SchemaField |
AbstractSubTypeFieldType.subField(SchemaField base,
int i,
IndexSchema schema) |
Constructor and Description |
---|
FieldTypePluginLoader(IndexSchema schema,
Map<String,FieldType> fieldTypes,
Collection<SchemaAware> schemaAware) |
Modifier and Type | Method and Description |
---|---|
IndexSchema |
SolrIndexSearcher.getSchema()
Direct access to the IndexSchema for use with this searcher
|
Modifier and Type | Method and Description |
---|---|
static String |
QueryParsing.getDefaultField(IndexSchema s,
String df)
Returns the effective default field based on the 'df' param or
hardcoded schema default.
|
static QueryParser.Operator |
QueryParsing.getQueryParserDefaultOperator(IndexSchema sch,
String override)
Returns the "preferred" default operator for use by Query Parsers,
based on the settings in the IndexSchema which may be overridden using
an optional String override value.
|
static String |
DisMaxQParser.parseMinShouldMatch(IndexSchema schema,
SolrParams params)
Applies the appropriate default rules for the "mm" param based on the
effective value of the "q.op" param
|
static Map<String,Float> |
DisMaxQParser.parseQueryFields(IndexSchema indexSchema,
SolrParams solrParams)
Uses
SolrPluginUtils.parseFieldBoosts(String) with the 'qf' parameter. |
static SortSpec |
SortSpecParsing.parseSortSpec(String sortSpec,
IndexSchema schema)
The form of the (function free) sort specification string currently parsed is:
|
static List<String> |
QueryParsing.toString(List<Query> queries,
IndexSchema schema)
Builds a list of String which are stringified versions of a list of Queries
|
static String |
QueryParsing.toString(Query query,
IndexSchema schema)
Formats a Query for debugging, using the IndexSchema to make
complex field types readable.
|
static void |
QueryParsing.toString(Query query,
IndexSchema schema,
Appendable out,
int flags) |
Constructor and Description |
---|
CursorMark(IndexSchema schema,
SortSpec sortSpec)
Generates an empty CursorMark bound for use with the
specified schema and
SortSpec . |
SolrIndexSearcher(SolrCore core,
String path,
IndexSchema schema,
SolrIndexConfig config,
String name,
boolean enableCache,
DirectoryFactory directoryFactory) |
SolrIndexSearcher(SolrCore core,
String path,
IndexSchema schema,
String name,
DirectoryReader r,
boolean closeReader,
boolean enableCache,
boolean reserveDirectory,
DirectoryFactory directoryFactory) |
Modifier and Type | Method and Description |
---|---|
protected ScoreDoc[] |
TopGroupsResultTransformer.transformToNativeShardDoc(List<NamedList<Object>> documents,
Sort groupSort,
String shard,
IndexSchema schema) |
Modifier and Type | Method and Description |
---|---|
static SolrIndexWriter |
SolrIndexWriter.create(SolrCore core,
String name,
String path,
DirectoryFactory directoryFactory,
boolean create,
IndexSchema schema,
SolrIndexConfig config,
IndexDeletionPolicy delPolicy,
Codec codec) |
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. |
static Document |
DocumentBuilder.toDocument(SolrInputDocument doc,
IndexSchema schema) |
static Document |
DocumentBuilder.toDocument(SolrInputDocument doc,
IndexSchema schema,
boolean forInPlaceUpdate)
Convert a SolrInputDocument to a lucene Document.
|
Modifier and Type | Field and Description |
---|---|
protected IndexSchema |
AtomicUpdateDocumentMerger.schema |
Modifier and Type | Method and Description |
---|---|
static FieldMutatingUpdateProcessor.FieldNameSelector |
FieldMutatingUpdateProcessor.createFieldNameSelector(SolrResourceLoader loader,
IndexSchema schema,
FieldMutatingUpdateProcessorFactory.SelectorParams params,
FieldMutatingUpdateProcessor.FieldNameSelector defSelector)
Utility method that can be used to define a FieldNameSelector
using the same types of rules as the FieldMutatingUpdateProcessor init
code.
|
Modifier and Type | Method and Description |
---|---|
static NamedList<Explanation> |
SolrPluginUtils.getExplanations(Query query,
DocList docs,
SolrIndexSearcher searcher,
IndexSchema schema)
Generates an NamedList of Explanations for each item in a list of docs.
|
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.