public class SchemaDesignerAPI extends Object implements SchemaDesignerConstants
ANALYSIS_ERROR, AUTO_CREATE_FIELDS, BLOB_STORE_ID, CLEANUP_TEMP_PARAM, CONFIG_SET_PARAM, CONFIGOVERLAY_JSON, COPY_FROM_PARAM, DESIGNER_KEY, DESIGNER_PREFIX, DISABLE_DESIGNER_PARAM, DISABLED, DOC_ID_PARAM, ENABLE_DYNAMIC_FIELDS_PARAM, ENABLE_FIELD_GUESSING_PARAM, ENABLE_NESTED_DOCS_PARAM, ERROR_DETAILS, FIELD_PARAM, INDEX_TO_COLLECTION_PARAM, LANGUAGES_PARAM, MAX_SAMPLE_DOCS, NEW_COLLECTION_PARAM, PUBLISHED_VERSION, RELOAD_COLLECTIONS_PARAM, SCHEMA_VERSION_PARAM, SOLR_CONFIG_XML, TEMP_COLLECTION_PARAM, UNIQUE_KEY_FIELD_PARAM, UPDATE_ERROR| Constructor and Description |
|---|
SchemaDesignerAPI(CoreContainer coreContainer) |
public SchemaDesignerAPI(CoreContainer coreContainer)
public static SchemaSuggester newSchemaSuggester(CoreContainer coreContainer)
public static SampleDocumentsLoader newSampleDocumentsLoader(CoreContainer coreContainer)
public void getInfo(SolrQueryRequest req, SolrQueryResponse rsp) throws IOException
IOExceptionpublic void prepNewSchema(SolrQueryRequest req, SolrQueryResponse rsp) throws IOException, SolrServerException
IOExceptionSolrServerExceptionpublic void cleanupTemp(SolrQueryRequest req, SolrQueryResponse rsp) throws IOException, SolrServerException
IOExceptionSolrServerExceptionpublic void getFileContents(SolrQueryRequest req, SolrQueryResponse rsp) throws IOException
IOExceptionpublic void updateFileContents(SolrQueryRequest req, SolrQueryResponse rsp) throws IOException, SolrServerException
IOExceptionSolrServerExceptionpublic void getSampleValue(SolrQueryRequest req, SolrQueryResponse rsp) throws IOException
IOExceptionpublic void listCollectionsForConfig(SolrQueryRequest req, SolrQueryResponse rsp)
public void listConfigs(SolrQueryRequest req, SolrQueryResponse rsp) throws IOException
IOExceptionprotected Map<String,Integer> listEnabledConfigs() throws IOException
IOExceptionpublic void downloadConfig(SolrQueryRequest req, SolrQueryResponse rsp) throws IOException
IOExceptionpublic void addSchemaObject(SolrQueryRequest req, SolrQueryResponse rsp) throws IOException, SolrServerException
IOExceptionSolrServerExceptionpublic void updateSchemaObject(SolrQueryRequest req, SolrQueryResponse rsp) throws IOException, SolrServerException
IOExceptionSolrServerExceptionpublic void publish(SolrQueryRequest req, SolrQueryResponse rsp) throws IOException, SolrServerException
IOExceptionSolrServerExceptionpublic void analyze(SolrQueryRequest req, SolrQueryResponse rsp) throws IOException, SolrServerException
IOExceptionSolrServerExceptionpublic void query(SolrQueryRequest req, SolrQueryResponse rsp) throws IOException, SolrServerException
IOExceptionSolrServerExceptionpublic void getSchemaDiff(SolrQueryRequest req, SolrQueryResponse rsp) throws IOException
IOExceptionprotected SampleDocuments loadSampleDocuments(SolrQueryRequest req, String configSet) throws IOException
IOExceptionprotected ManagedIndexSchema analyzeInputDocs(Map<String,List<Object>> docs, ManagedIndexSchema schema, List<String> langs)
protected org.apache.solr.handler.designer.SchemaDesignerSettings getMutableSchemaForConfigSet(String configSet, int schemaVersion, String copyFrom) throws IOException
IOExceptionprotected ContentStream extractSingleContentStream(SolrQueryRequest req, boolean required)
protected CloudSolrClient cloudClient()
protected ZkStateReader zkStateReader()
protected Map<Object,Throwable> indexSampleDocsWithRebuildOnAnalysisError(String idField, List<SolrInputDocument> docs, String collectionName, boolean asBatch, String[] analysisErrorHolder) throws IOException, SolrServerException
IOExceptionSolrServerExceptionprotected Map<Object,Throwable> indexSampleDocs(String idField, List<SolrInputDocument> docs, String collectionName, boolean asBatch) throws IOException, SolrServerException
IOExceptionSolrServerExceptionprotected long waitToSeeSampleDocs(String collectionName, long numAdded) throws IOException, SolrServerException
IOExceptionSolrServerExceptionprotected Map<String,Object> buildResponse(String configSet, ManagedIndexSchema schema, org.apache.solr.handler.designer.SchemaDesignerSettings settings, List<SolrInputDocument> docs) throws IOException
IOExceptionprotected void addErrorToResponse(String collection, SolrException solrExc, Map<Object,Throwable> errorsDuringIndexing, Map<String,Object> response, String updateError)
protected SimpleOrderedMap<Object> fieldToMap(SchemaField f, ManagedIndexSchema schema)
protected Map<String,Object> readJsonFromRequest(SolrQueryRequest req) throws IOException
IOExceptionprotected void addSettingsToResponse(org.apache.solr.handler.designer.SchemaDesignerSettings settings,
Map<String,Object> response)
protected String checkMutable(String configSet, SolrQueryRequest req) throws IOException
IOExceptionprotected int requireSchemaVersionFromClient(SolrQueryRequest req)
protected String getRequiredParam(String param, SolrQueryRequest req)
protected void cleanupTemp(String configSet) throws IOException, SolrServerException
IOExceptionSolrServerExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.