Class Engine.GetResult

java.lang.Object
org.elasticsearch.index.engine.Engine.GetResult
All Implemented Interfaces:
Closeable, AutoCloseable, org.elasticsearch.core.Releasable
Enclosing class:
Engine

public static class Engine.GetResult extends Object implements org.elasticsearch.core.Releasable
  • Field Details

  • Constructor Details

  • Method Details

    • exists

      public boolean exists()
    • version

      public long version()
    • isFromTranslog

      public boolean isFromTranslog()
      Returns true iff the get was performed from a translog operation. Notes that this returns false if the get was performed on an in-memory Lucene segment created from the corresponding translog operation.
    • searcher

      public Engine.Searcher searcher()
    • docIdAndVersion

      public VersionsAndSeqNoResolver.DocIdAndVersion docIdAndVersion()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.elasticsearch.core.Releasable