Class AtlassianDocument


  • public class AtlassianDocument
    extends Object
    Since:
    7.16
    • Constructor Detail

      • AtlassianDocument

        public AtlassianDocument()
    • Method Detail

      • getId

        @Nullable
        public String getId()
        Returns the id that uniquely identifies this document on the index, or null if this document is to be indexed with an auto-generated id.

        Only available in OpenSearch. This property is ignored on Lucene.

        Returns:
        the id that uniquely identifies this document on the index, or null if this document is to be indexed with an auto-generated id.
        Since:
        8.8
      • setId

        @ExperimentalApi
        public AtlassianDocument setId​(@Nullable
                                       String id)
        Sets an (optional) id that uniquely identifies this document on the index. If null, an internal id will be auto-generated.

        Only available in OpenSearch. This property is ignored on Lucene.

        Parameters:
        id - String | the id that uniquely identifies this document on the index
        Since:
        8.8