Class SearchRequest

    • Field Detail

      • DEFAULT_INDICES_OPTIONS

        public static final IndicesOptions DEFAULT_INDICES_OPTIONS
    • Constructor Detail

      • SearchRequest

        public SearchRequest()
      • SearchRequest

        public SearchRequest(SearchRequest searchRequest,
                             ActionRequest originalRequest)
        Copy constructor that creates a new search request that is a copy of the one provided as an argument. The new request will inherit though headers and context from the original request that caused it.
      • SearchRequest

        public SearchRequest(ActionRequest request)
        Constructs a new search request starting from the provided request, meaning that it will inherit its headers and context
      • SearchRequest

        public SearchRequest(String... indices)
        Constructs a new search request against the indices. No indices provided here means that search will run against all indices.
      • SearchRequest

        public SearchRequest(String[] indices,
                             byte[] source)
        Constructs a new search request against the provided indices with the given search source.