Browse Source

全文检索优化

xiaoqiao 3 months ago
parent
commit
73d968b9e9

+ 1 - 1
src/main/java/com/bowintek/smartsearch/services/impl/QueryLogServiceImpl.java

@@ -73,6 +73,6 @@ public class QueryLogServiceImpl implements QueryLogService {
     public List<EsRelationLog> getRelationLogList(String well_common_name) {
         EsRelationLogExample example = new EsRelationLogExample();
         example.or().andWell_common_nameEqualTo(well_common_name);
-        return esRelationLogMapper.selectByExample(example).stream().skip(10).collect(Collectors.toList());
+        return esRelationLogMapper.selectByExample(example).stream().limit(10).collect(Collectors.toList());
     }
 }

+ 1 - 1
vue/src/views/esdomain/result.vue

@@ -195,7 +195,7 @@ export default defineComponent({
     ) => {
       pageParams.value.current = pag.current;
       pageParams.value.pageSize = pag.pageSize;
-      onQuery(queryObject.value);
+      loadData();
     };
 
     const queryRef = ref<typeof queryCriteria>();