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

    Constructors
    Constructor
    Description
    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.
     
    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 Type
    Method
    Description
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Adds/creates a new property with the given name.
    void
    addProperty(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.
     
    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.
     
    long
    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.
     
    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.
     
    long
    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.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    Deprecated.
    boolean
    hasProperty(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.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ElasticsearchDocument

      @Deprecated public ElasticsearchDocument(org.elasticsearch.search.SearchHit hit)
      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

      @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

      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

      public String getId()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getId in interface SearchDocument
    • getType

      public String getType()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getVersion

      @Deprecated public long 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

      public String getIndex()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getSource

      public Map<String,Object> getSource()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getResource

      public String getResource()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getResource in interface SearchDocument
    • getContext

      public String getContext()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getContext in interface SearchDocument
    • getPropertyNames

      public Set<String> getPropertyNames()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: SearchDocument
      Returns a set of the property names.
      Specified by:
      getPropertyNames in interface SearchDocument
    • addProperty

      public void addProperty(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: SearchDocument
      Adds/creates a new property with the given name.
      Specified by:
      addProperty in interface SearchDocument
    • addProperty

      public void addProperty(String name, String text)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: SearchDocument
      Adds a value to the property with the given name.
      Specified by:
      addProperty in interface SearchDocument
    • addGeoProperty

      public void addGeoProperty(String name, String text)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      addGeoProperty in interface SearchDocument
    • hasProperty

      public boolean hasProperty(String name, String value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: SearchDocument
      Checks whether a field occurs with a specified value in a Document.
      Specified by:
      hasProperty in interface SearchDocument
    • getProperty

      public List<String> getProperty(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getProperty in interface SearchDocument