【发布时间】:2014-12-10 15:22:51
【问题描述】:
我的 RavenDB 中有以下对象:
Object1:
{
"Texts" : [ "one two", "three four" ]
}
Object2:
{
"Texts" : [ "one three", "two four" ]
}
我想查找Texts 中的字符串包含one 和two 这两个术语的所有对象。
如果我索引该字段
from doc in docs.Objects select new { Texts }
并使用StandardAnalyzer 对其进行分析,当我只想要Object1 时,以下查询将返回Object1 和Object2:
Texts:(one AND two)
我该如何解决这个问题?
【问题讨论】: