Class ElasticsearchDocument
java.lang.Object
org.eclipse.rdf4j.sail.elasticsearch.ElasticsearchDocument
- All Implemented Interfaces:
SearchDocument
@Deprecated(since="5.3.0",
forRemoval=true)
public class ElasticsearchDocument
extends Object
implements SearchDocument
Deprecated, for removal: This API element is subject to removal in a future version.
Deprecated in preparation for an Elasticsearch client upgrade; this API will change or be removed in a
future release.
-
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) Deprecated, for removal: This API element is subject to removal in a future version.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) Deprecated, for removal: This API element is subject to removal in a future version.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) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGeoProperty(String name, String text) Deprecated, for removal: This API element is subject to removal in a future version.voidaddProperty(String name) Deprecated, for removal: This API element is subject to removal in a future version.Adds/creates a new property with the given name.voidaddProperty(String name, String text) Deprecated, for removal: This API element is subject to removal in a future version.Adds a value to the property with the given name.Deprecated, for removal: This API element is subject to removal in a future version.getId()Deprecated, for removal: This API element is subject to removal in a future version.getIndex()Deprecated, for removal: This API element is subject to removal in a future version.longDeprecated, for removal: This API element is subject to removal in a future version.getProperty(String name) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Returns a set of the property names.Deprecated, for removal: This API element is subject to removal in a future version.longgetSeqNo()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getType()Deprecated, for removal: This API element is subject to removal in a future version.longDeprecated.booleanhasProperty(String name, String value) Deprecated, for removal: This API element is subject to removal in a future version.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) Deprecated, for removal: This API element is subject to removal in a future version. -
ElasticsearchDocument
public 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) Deprecated, for removal: This API element is subject to removal in a future version. -
ElasticsearchDocument
-
ElasticsearchDocument
public ElasticsearchDocument(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) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getId
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getIdin interfaceSearchDocument
-
getType
Deprecated, for removal: This API element is subject to removal in a future version. -
getVersion
Deprecated. -
getSeqNo
public long getSeqNo()Deprecated, for removal: This API element is subject to removal in a future version. -
getPrimaryTerm
public long getPrimaryTerm()Deprecated, for removal: This API element is subject to removal in a future version. -
getIndex
Deprecated, for removal: This API element is subject to removal in a future version. -
getSource
-
getResource
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getResourcein interfaceSearchDocument
-
getContext
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getContextin interfaceSearchDocument
-
getPropertyNames
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SearchDocumentReturns a set of the property names.- Specified by:
getPropertyNamesin interfaceSearchDocument
-
addProperty
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SearchDocumentAdds/creates a new property with the given name.- Specified by:
addPropertyin interfaceSearchDocument
-
addProperty
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SearchDocumentAdds a value to the property with the given name.- Specified by:
addPropertyin interfaceSearchDocument
-
addGeoProperty
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
addGeoPropertyin interfaceSearchDocument
-
hasProperty
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SearchDocumentChecks whether a field occurs with a specified value in a Document.- Specified by:
hasPropertyin interfaceSearchDocument
-
getProperty
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getPropertyin interfaceSearchDocument
-