Skip to content
Permalink
Browse files

No commit message

  • Loading branch information...
hhblaze committed Sep 9, 2019
1 parent bad26c3 commit 42efb1da1712e097d01c79dc587de575f660524d
Showing with 17 additions and 14 deletions.
  1. +17 −14 VisualTester/MainWindow.xaml.cs
@@ -1259,22 +1259,25 @@ private void btTestSearchText_Click(object sender, RoutedEventArgs e)
//Biser.Decode_DICT_PROTO_STRING_UINTHASHSET(btx, d1, Compression.eCompressionType.NoCompression);

//return;
//if (textsearchengine == null)
//{
// textsearchengine = new DBreezeEngine(@"D:\temp\DBR1\");
//}
//MyTask tsk = null;

if (textsearchengine == null)
{
textsearchengine = new DBreezeEngine(@"D:\temp\DBR1\");
}

using (var tran = textsearchengine.GetTransaction())
{
tran.TextInsert("transtext", new byte[] { 1 }, "Apple Banana Сегодня день 周杰伦", "#LG1 #LG2");
tran.TextInsert("transtext", new byte[] { 2 }, "Banana MANGO", "#LG2 #LG3");
tran.Commit();

//using (var tran = textsearchengine.GetTransaction())
//{
// var resp = tran.TextSearch("TaskText", new DBreeze.TextSearch.TextSearchRequest()
// {
// // SearchLogicType = DBreeze.TextSearch.TextSearchRequest.eSearchLogicType.OR,
// SearchWords = "Xamarin"
// });
}

//}
using (var tran = textsearchengine.GetTransaction())
{
//var block = tran.TextSearch("transtext").Block("Apple");
var block = tran.TextSearch("transtext").Block("周杰伦");
Console.WriteLine($"---- {block.GetDocumentIDs().Count()} ---");//returns 1
}

return;

0 comments on commit 42efb1d

Please sign in to comment.
You can’t perform that action at this time.