mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-24 10:27:28 +08:00
[fix][headless]Fix logic bug in s2sql parsing. (#1996)
This commit is contained in:
@@ -31,8 +31,8 @@ public class AllFieldMapper extends BaseMapper {
|
||||
List<SchemaElementMatch> allMatches = Lists.newArrayList();
|
||||
for (SchemaElement schemaElement : schemaElements) {
|
||||
allMatches.add(SchemaElementMatch.builder().word(schemaElement.getName())
|
||||
.element(schemaElement).detectWord(schemaElement.getName())
|
||||
.similarity(0.1).build());
|
||||
.element(schemaElement).detectWord(schemaElement.getName()).similarity(0.1)
|
||||
.build());
|
||||
}
|
||||
chatQueryContext.getMapInfo().setMatchedElements(entry.getKey(), allMatches);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user