0
此测试失败(使用乌鸦分贝的扩展方法的搜索,这允许multple参数):RavenDB搜索扩展方法
Db.Query<KeywordsSearchIndex.Result, KeywordsSearchIndex>()
.Search(r => r.Value, "My Test String")
.Count().Should().Be(1);
这通行证(使用标准位置):
Db.Query<KeywordsSearchIndex.Result, KeywordsSearchIndex>()
.Where(r => r.Value.Equals("My Test String"))
.Count().Should().Be(1);
为什么呢?它适用于docs
您是否在'KeywordsSelectIndex.Value'字符串中定义了一个索引来表示它已被分析? –