Class ElasticsearchDocument
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
Document that encapsulates business objects and offers support for adding those objects to a search index.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchDocument(String id, String type, List<SearchMetadata<?>> resource) Creates a new elastic search document based on the id, the document type and the metadata. -
Method Summary
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
ElasticsearchDocument
Creates a new elastic search document based on the id, the document type and the metadata.Note that the type needs to map to an Elasticsearch document type mapping.
- Parameters:
id- the resource identifier.type- the document typeresource- the resource metadata
-
-
Method Details
-
getType
Returns the document type.- Returns:
- the type
-
getUID
Returns the identifier.- Returns:
- the identifier
-