Package fr.ght1pc9kc.testy.search
Interface OpenSearchDataSet<T>
- Type Parameters:
T- Type of the elements to index as documents.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Set of documents used to initialize an index with data.
-
Method Summary
Modifier and TypeMethodDescriptionObtain the documents to index.default StringName of the field holding the document_id.
-
Method Details
-
documents
Obtain the documents to index.- Returns:
- Documents to index.
-
identifier
Name of the field holding the document_id. A field named_idis removed from the source, as OpenSearch rejects metadata fields inside a document; any other field is kept. Documents without this field get an id generated by OpenSearch.- Returns:
- The identifier field name.
-