Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring boot 是否让ElasticsearchRepository返回页面中的特定字段?_Spring Boot_<img Src="//i.stack.imgur.com/RUiNP.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">elasticsearch_Spring Data - Fatal编程技术网 elasticsearch,spring-data,Spring Boot,elasticsearch,Spring Data" /> elasticsearch,spring-data,Spring Boot,elasticsearch,Spring Data" />

Spring boot 是否让ElasticsearchRepository返回页面中的特定字段?

Spring boot 是否让ElasticsearchRepository返回页面中的特定字段?,spring-boot,elasticsearch,spring-data,Spring Boot,elasticsearch,Spring Data,如何在book对象中指定要返回的字段 接口BookRepository扩展了ElasticsearchRepository{ PageFindByname(字符串名称,可分页); } 您必须编写query@query(“从b本书中选择b.column1,b.column2,…,其中b.name=:name”),但elasticSearch不接受此查询格式。请检查此格式,这是Lemmy。您必须编写query@query(“从b本书中选择b.column1,b.column2,…,其中b.name=

如何在book对象中指定要返回的字段

接口BookRepository扩展了ElasticsearchRepository{
PageFindByname(字符串名称,可分页);
}

您必须编写query@query(“从b本书中选择b.column1,b.column2,…,其中b.name=:name”),但elasticSearch不接受此查询格式。请检查此格式,这是Lemmy。您必须编写query@query(“从b本书中选择b.column1,b.column2,…,其中b.name=:name”)但是elasticSearch不接受此查询格式。请检查此格式和此格式。