title: All methods in the `ElasticsearchRepository` are deprecated. What should do I use?
body: <p>I have this query:</p>
  <pre><code>NativeSearchQuery searchQuery = new NativeSearchQueryBuilder()
                  .withQuery(multiMatchQuery(searchPattern)
                          .field(&quot;fullName&quot;)
                          .field(&quot;npi&quot;)
                          .type(MultiMatchQueryBuilder.Type.BEST_FIELDS))
                  .build();
  </code></pre>
  <p>How can I run it? All methods in the <code>ElasticsearchRepository</code> are deprecated:</p>
  <pre><code>public interface ElasticsearchRepository&lt;T, ID&gt; extends PagingAndSortingRepository&lt;T, ID&gt; {
      /** @deprecated */
      @Deprecated
      default &lt;S extends T&gt; S index(S entity) {
          return this.save(entity);
      }
  
      /** @deprecated */
      @Deprecated
      &lt;S extends T&gt; S indexWithoutRefresh(S var1);
  
      /** @deprecated */
      Iterable&lt;T&gt; search(QueryBuilder var1);
  
      /** @deprecated */
      Page&lt;T&gt; search(QueryBuilder var1, Pageable var2);
  
      /** @deprecated */
      Page&lt;T&gt; search(Query var1);
  
      Page&lt;T&gt; searchSimilar(T var1, @Nullable String[] var2, Pageable var3);
  
      /** @deprecated */
      @Deprecated
      void refresh();
  }
  </code></pre>