Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Class IgnoreMalformedStoredValues
java.lang.Object
org.elasticsearch.index.mapper.IgnoreMalformedStoredValues
Saves malformed values to stored fields so they can be loaded for synthetic
_source.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intcount()How many values has this field loaded for this document?static IgnoreMalformedStoredValuesempty()Build aIgnoreMalformedStoredValuesthat never contains any values.static Stringabstract voidreset()Remove stored values for this document and return to clean state to process next document.static IgnoreMalformedStoredValuesBuild aIgnoreMalformedStoredValuesthat loads from stored fields.static org.apache.lucene.document.StoredFieldstoredField(String name, XContentBuilder builder) Creates a stored field that stores malformed data to be used in synthetic source.static org.apache.lucene.document.StoredFieldstoredField(String name, XContentParser parser) Creates a stored field that stores malformed data to be used in synthetic source.AStreammapping stored field paths to a place to put them so they can be included in the next document.abstract voidWrite values for this document.
-
Constructor Details
-
IgnoreMalformedStoredValues
public IgnoreMalformedStoredValues()
-
-
Method Details
-
storedField
public static org.apache.lucene.document.StoredField storedField(String name, XContentParser parser) throws IOException Creates a stored field that stores malformed data to be used in synthetic source. Name of the stored field is original name of the field with added conventional suffix.- Parameters:
name- original name of the fieldparser- parser to grab field content from- Returns:
- Throws:
IOException
-
storedField
public static org.apache.lucene.document.StoredField storedField(String name, XContentBuilder builder) throws IOException Creates a stored field that stores malformed data to be used in synthetic source. Name of the stored field is original name of the field with added conventional suffix.- Parameters:
name- original name of the fieldbuilder- malformed data- Returns:
- Throws:
IOException
-
empty
Build aIgnoreMalformedStoredValuesthat never contains any values. -
stored
Build aIgnoreMalformedStoredValuesthat loads from stored fields. -
storedFieldLoaders
public abstract Stream<Map.Entry<String,SourceLoader.SyntheticFieldLoader.StoredFieldLoader>> storedFieldLoaders()AStreammapping stored field paths to a place to put them so they can be included in the next document. -
count
public abstract int count()How many values has this field loaded for this document? -
write
Write values for this document.- Throws:
IOException
-
reset
public abstract void reset()Remove stored values for this document and return to clean state to process next document. -
name
-