Enum Class 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.

      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!

      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