懒得勤快 5 years ago
parent
commit
32958b6896
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Masuit.LuceneEFCore.SearchEngine/LuceneIndexSearcher.cs

+ 1 - 1
Masuit.LuceneEFCore.SearchEngine/LuceneIndexSearcher.cs

@@ -64,7 +64,7 @@ namespace Masuit.LuceneEFCore.SearchEngine
                 keyword = keyword.Replace(m.Value, "");
                 return m.Value;
             }));//必须包含的
-            list.AddRange(Regex.Matches(keyword, @"\s-.+\s").Cast<Match>().Select(m =>
+            list.AddRange(Regex.Matches(keyword, @"\s-.+\s?").Cast<Match>().Select(m =>
             {
                 keyword = keyword.Replace(m.Value, "");
                 return m.Value.Trim();