如何使用@Query 注释使用 spring-data 增加 elasticsearch 中的响应大小?

How to increase response size in elasticsearch with spring-data using @Query annotation?

目前以下查询仅返回 10 个搜索结果。我想增加到100,怎么办??

    @Query("{\"match\": {\"metaData.transcript1\": {\"query\": \"?0\",\"fuzziness\": \"AUTO\",\"prefix_length\": \"0\",\"max_expansions\": \"100\",\"boost\": \"1.0\"}}}")
    @Highlight(fields = {@HighlightField(name = "metaData.transcript1")}, parameters = @HighlightParameters(
            preTags = "<em>",
            postTags = "</em>",
            fragmentSize = 50
            numberOfFragments = 3
        ))
    List<SearchHit<Audio>> findByKeyword(String query);```

尝试页面

  @Query("{\"match\": {\"metaData.transcript1\": {\"query\": \"?0\",\"fuzziness\": \"AUTO\",\"prefix_length\": \"0\",\"max_expansions\": \"100\",\"boost\": \"1.0\"}}}")
    @Highlight(fields = {@HighlightField(name = "metaData.transcript1")}, parameters = @HighlightParameters(
            preTags = "<em>",
            postTags = "</em>",
            fragmentSize = 50
            numberOfFragments = 3
        ))
    Page<SearchHit<Audio>> findByKeyword(String query,Pageable pageable);

喜欢就用

Page<SearchHit<Audio>> audios = repository.findAll("query_string",PageRequest.of(0, 100));