Skip to content

Commit 67e69c8

Browse files
committed
Spring Boot 中使用 java API 方式操作 Elasticsearch 高亮 分页
1 parent c54ed4d commit 67e69c8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎spring-boot-elasticsearch-demo/src/test/java/io/ymq/example/elasticsearch/ElasticsearchUtilsTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void deleteDataByIdTest() {
8585

8686

8787
/**
88-
* 通过ID 更新数据
88+
* 通过ID更新数据
8989
* <p>
9090
* jsonObject 要增加的数据
9191
* index 索引,类似数据库
@@ -163,7 +163,7 @@ public void searchListData() {
163163
@Test
164164
public void searchDataPage() {
165165

166-
EsPage esPage = ElasticsearchUtils.searchDataPage("ymq_index", "about_test", 10, 5, 0, 0, "", "processTime", false, "about", "about=鹏磊");
166+
EsPage esPage = ElasticsearchUtils.searchDataPage("ymq_index", "about_test", 10, 5, 0, 0, "", "processTime", false, "name", "name=鹏磊");
167167

168168
for (Map<String, Object> item : esPage.getRecordList()) {
169169

0 commit comments

Comments
 (0)