Class ElasticsearchDocument
java.lang.Object
org.eclipse.rdf4j.sail.elasticsearch.ElasticsearchDocument
- All Implemented Interfaces:
SearchDocument
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchDocument(String id, String type, String index, long seqNo, long primaryTerm, Map<String,Object> fields, com.google.common.base.Function<? super String,? extends org.locationtech.spatial4j.context.SpatialContext> geoContextMapper)
ElasticsearchDocument(String id, String type, String index, long version, Map<String,Object> fields, com.google.common.base.Function<? super String,? extends org.locationtech.spatial4j.context.SpatialContext> geoContextMapper)
Deprecated.ElasticsearchDocument(String id, String type, String index, String resourceId, String context, com.google.common.base.Function<? super String,? extends org.locationtech.spatial4j.context.SpatialContext> geoContextMapper)
ElasticsearchDocument(org.elasticsearch.search.SearchHit hit)
Deprecated.ElasticsearchDocument(org.elasticsearch.search.SearchHit hit, com.google.common.base.Function<? super String,? extends org.locationtech.spatial4j.context.SpatialContext> geoContextMapper)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addGeoProperty(String name, String text)
void
addProperty(String name)
Adds/creates a new property with the given name.void
addProperty(String name, String text)
Adds a value to the property with the given name.getId()
getIndex()
long
getProperty(String name)
Returns a set of the property names.long
getSeqNo()
getType()
long
Deprecated.boolean
hasProperty(String name, String value)
Checks whether a field occurs with a specified value in a Document.
-
Constructor Details
-
ElasticsearchDocument
Deprecated. -
ElasticsearchDocument
public ElasticsearchDocument(org.elasticsearch.search.SearchHit hit, com.google.common.base.Function<? super String,? extends org.locationtech.spatial4j.context.SpatialContext> geoContextMapper) -
ElasticsearchDocument
-
ElasticsearchDocument
@Deprecated public ElasticsearchDocument(String id, String type, String index, long version, Map<String,Object> fields, com.google.common.base.Function<? super String,? extends org.locationtech.spatial4j.context.SpatialContext> geoContextMapper)Deprecated. -
ElasticsearchDocument
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceSearchDocument
-
getType
-
getVersion
Deprecated. -
getSeqNo
public long getSeqNo() -
getPrimaryTerm
public long getPrimaryTerm() -
getIndex
-
getSource
-
getResource
- Specified by:
getResource
in interfaceSearchDocument
-
getContext
- Specified by:
getContext
in interfaceSearchDocument
-
getPropertyNames
Description copied from interface:SearchDocument
Returns a set of the property names.- Specified by:
getPropertyNames
in interfaceSearchDocument
-
addProperty
Description copied from interface:SearchDocument
Adds/creates a new property with the given name.- Specified by:
addProperty
in interfaceSearchDocument
-
addProperty
Description copied from interface:SearchDocument
Adds a value to the property with the given name.- Specified by:
addProperty
in interfaceSearchDocument
-
addGeoProperty
- Specified by:
addGeoProperty
in interfaceSearchDocument
-
hasProperty
Description copied from interface:SearchDocument
Checks whether a field occurs with a specified value in a Document.- Specified by:
hasProperty
in interfaceSearchDocument
-
getProperty
- Specified by:
getProperty
in interfaceSearchDocument
-