添加模糊搜索

基于url表达式的模糊搜索
This commit is contained in:
CortexCore
2023-07-19 01:15:17 +08:00
parent f380713718
commit d8d5b3366e
8 changed files with 69 additions and 8 deletions

View File

@@ -51,9 +51,10 @@ public partial class IDIS_SearchService : Node
}
private void Search(string word)
{
var rawHandle = word.Split('?').First();
MathNode.ClearChild(searchCandidateContainer);
if (service.Query(word, out IDIS_Query[] queries) is false) return;
if (queries.Length is 1 && queries.First().Handle == word)
if (queries.Length is 1 && queries.First().Handle == rawHandle)
{
QueryIDIS(queries.First());
return;