public class DefaultSchemaSuggester extends Object implements SchemaSuggester
Constructor and Description |
---|
DefaultSchemaSuggester() |
public void validateTypeChange(SchemaField field, FieldType toType, List<SolrInputDocument> docs) throws IOException
validateTypeChange
in interface SchemaSuggester
IOException
protected void validateNumericTypeChange(SchemaField field, FieldType toType, List<SolrInputDocument> docs, NumberType toNumType)
public Optional<SchemaField> suggestField(String fieldName, List<Object> sampleValues, IndexSchema schema, List<String> langs)
suggestField
in interface SchemaSuggester
public ManagedIndexSchema adaptExistingFieldToData(SchemaField schemaField, List<Object> sampleValues, ManagedIndexSchema schema)
adaptExistingFieldToData
in interface SchemaSuggester
public Map<String,List<Object>> transposeDocs(List<SolrInputDocument> docs)
transposeDocs
in interface SchemaSuggester
protected String guessFieldType(String fieldName, List<Object> sampleValues, IndexSchema schema, boolean isMV, Locale locale)
public boolean isMultiValued(String name, List<SolrInputDocument> docs)
isMultiValued
in interface SchemaSuggester
protected Map<String,String> guessFieldProps(String fieldName, FieldType fieldType, List<Object> sampleValues, boolean isMV, IndexSchema schema)
public void init(NamedList args)
init
in interface NamedListInitializedPlugin
protected void initDateTimeFormatters(NamedList args)
protected void initBooleanParsing(NamedList args)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.