fix: duplicate search result

This commit is contained in:
vran
2022-05-29 21:37:17 +08:00
parent 9ab15514b5
commit d9a9f359cd
2 changed files with 4 additions and 3 deletions

View File

@@ -238,7 +238,7 @@ public class DocumentService {
GroupPojo group = groupDao.selectById(project.getGroupId());
List<TableColumnDocumentPojo> columns = tableColumnDocumentDao.selectByTableDocumentId(table.getId());
// clear outdated data before save
documentFullTextDao.deleteByTableId(table.getId());
documentFullTextDao.deleteTableFullText(table.getId());
List<DocumentFullTextPojo> fullTextPojoList = columns.stream()
.map(column -> {
String tableName = table.getName();