mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 20:51:48 +00:00
(improvement)(Headless) Filter out terms whose detect word length is 1 (#1041)
Co-authored-by: jolunoluo
This commit is contained in:
@@ -119,7 +119,9 @@ public class MetaDiscoveryServiceImpl implements MetaDiscoveryService {
|
||||
SchemaMapInfo mapInfo,
|
||||
Map<Long, DataSetResp> dataSetMap) {
|
||||
Map<Long, List<SchemaElementMatch>> result = new HashMap<>();
|
||||
|
||||
if (0 == topN) {
|
||||
return result;
|
||||
}
|
||||
SemanticSchema semanticSchema = semanticService.getSemanticSchema();
|
||||
for (Map.Entry<Long, List<SchemaElementMatch>> entry : mapInfo.getDataSetElementMatches().entrySet()) {
|
||||
Long dataSetId = entry.getKey();
|
||||
|
||||
Reference in New Issue
Block a user