public class SolrDocumentValidator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.regex.Pattern |
UNSAFE_PATTERN |
Constructor and Description |
---|
SolrDocumentValidator(SolrSchemaLoader solrSchemaLoader) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
fixUnsafeFieldName(java.lang.String name,
SolrInputDocument doc,
java.util.List<com.lucidworks.apollo.pipeline.schema.validation.ValidationError> errors,
boolean enforce) |
static void |
fixUnsafeFieldNames(SolrInputDocument doc,
java.util.List<com.lucidworks.apollo.pipeline.schema.validation.ValidationError> errors,
boolean enforce) |
static java.lang.String |
rename(java.lang.String field,
com.lucidworks.apollo.pipeline.index.config.transform.FieldMappingRule unmapped)
Rename an offending field to a dynamic field.
|
static java.util.Collection<java.lang.Object> |
stringifyValues(java.util.Collection<java.lang.Object> values) |
java.util.List<com.lucidworks.apollo.pipeline.schema.validation.ValidationError> |
validateDocument(java.lang.String collection,
SolrInputDocument doc,
com.lucidworks.apollo.common.util.DateUtils dateUtils,
boolean enforce,
boolean fixUnsafeNames,
com.lucidworks.apollo.pipeline.index.config.transform.FieldMappingRule unmapped) |
public SolrDocumentValidator(SolrSchemaLoader solrSchemaLoader)
public static final void fixUnsafeFieldNames(SolrInputDocument doc, java.util.List<com.lucidworks.apollo.pipeline.schema.validation.ValidationError> errors, boolean enforce)
public static final java.lang.String fixUnsafeFieldName(java.lang.String name, SolrInputDocument doc, java.util.List<com.lucidworks.apollo.pipeline.schema.validation.ValidationError> errors, boolean enforce)
public java.util.List<com.lucidworks.apollo.pipeline.schema.validation.ValidationError> validateDocument(java.lang.String collection, SolrInputDocument doc, com.lucidworks.apollo.common.util.DateUtils dateUtils, boolean enforce, boolean fixUnsafeNames, com.lucidworks.apollo.pipeline.index.config.transform.FieldMappingRule unmapped)
public static java.util.Collection<java.lang.Object> stringifyValues(java.util.Collection<java.lang.Object> values)
public static java.lang.String rename(java.lang.String field, com.lucidworks.apollo.pipeline.index.config.transform.FieldMappingRule unmapped)
field
- original field name