0

我正在使用 Spring BootElasticsearchRepositoryRestHighLevelClient. 我在mt存储库类中有这个查询:

public interface BillingCycleRepository extends ElasticsearchRepository<BillingCycle, String> {
    List<BillingCycle> findByUserIdOrderByStartDateDesc(String userId);
}

在我的控制台中,我可以看到:

org.elasticsearch.client.RestClient      : request [POST http://localhost:9200/dev-billing-cycle/_doc/_search?rest_total_hits_as_int=true&typed_keys=true&ignore_unavailable=false&expand_wildcards=open&allow_no_indices=true&ignore_throttled=true&search_type=query_then_fetch&batched_reduce_size=512]

它会生成很多参数,比如rest_total_hits_as_int和`typed_keys。

是否可以配置这些参数并添加任何其他参数,例如"filter_path", "preference"

4

0 回答 0