title: Elasticsearch set limit and offset using RestHighLevelClient
body: <p>I search in Elasticsearch using <code>MultiSearchRequest</code> by part of the field:</p>
  
  <pre><code>@Override
  public Collection&lt;Map&lt;String, Object&gt;&gt; findContractsByIndexAndWord(String index, String type, String word) throws CommonUserException {
      MultiSearchRequest request = new MultiSearchRequest();
      word = word.toLowerCase();
      request.add(formSearchRequestForMultiSearch(index, type, ID_FIELD, word));
      request.add(formSearchRequestForMultiSearch(index, type, PROVIDER_ID_FIELD, word));
  
      MultiSearchResponse searchResponse;
      try (RestHighLevelClient client = getClient()) {
          searchResponse = client.multiSearch(request);
          return formContracts(searchResponse);
      } catch (IOException e) {
          throw new CommonUserException(ELASTIC_EXCEPTION, ELASTIC_EXCEPTION);
      }
  }
  
  private SearchRequest formSearchRequestForMultiSearch(String index, String type, String field, String word) {
      SearchRequest searchRequest = new SearchRequest(index);
      searchRequest.types(type);
      SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
      searchSourceBuilder.query(QueryBuilders.wildcardQuery(field, word));
      searchRequest.source(searchSourceBuilder);
      return searchRequest;
  }
  private Collection&lt;Map&lt;String, Object&gt;&gt; formContracts(MultiSearchResponse response) {
      Collection&lt;Map&lt;String, Object&gt;&gt; contracts = new LinkedList&lt;&gt;();
      for (int i = 0; i &lt; response.getResponses().length; i++) {
          SearchHit[] hits = response.getResponses()[i].getResponse().getHits().getHits();
          for (SearchHit hit : hits) {
              if (!contracts.contains(hit.getSourceAsMap())) {
                  contracts.add(hit.getSourceAsMap());
              }
          }
      }
      return contracts;
  }
  </code></pre>
  
  <p>How can I add to this request limit and offset of the result?</p>