Enum Class WriteRequest.RefreshPolicy

java.lang.Object
java.lang.Enum<WriteRequest.RefreshPolicy>
org.elasticsearch.action.support.WriteRequest.RefreshPolicy
All Implemented Interfaces:
Serializable, Comparable<WriteRequest.RefreshPolicy>, Constable, Writeable
Enclosing interface:
WriteRequest<R extends WriteRequest<R>>

public static enum WriteRequest.RefreshPolicy extends Enum<WriteRequest.RefreshPolicy> implements Writeable
  • Enum Constant Details

    • NONE

      public static final WriteRequest.RefreshPolicy NONE
      Don't refresh after this request. The default.
    • IMMEDIATE

      public static final WriteRequest.RefreshPolicy IMMEDIATE
      Force a refresh as part of this request. This refresh policy does not scale for high indexing or search throughput but is useful to present a consistent view to for indices with very low traffic. And it is wonderful for tests!
    • WAIT_UNTIL

      public static final WriteRequest.RefreshPolicy WAIT_UNTIL
      Leave this request open until a refresh has made the contents of this request visible to search. This refresh policy is compatible with high indexing and search throughput but it causes the request to wait to reply until a refresh occurs.
  • Method Details