I have (among others) the follwing objects in my RavenDB:
Object1
:
{
"Texts" : [ "one two", "three four" ]
}
Object2
:
{
"Texts" : [ "one three", "two four" ]
}
I want to find all objects where a string in Texts
contains both of the terms one
and two
.
If I index the field
from doc in docs.Objects select new { Texts }
and analyze it using the StandardAnalyzer
the following query will return both Object1
and Object2
when I only want Object1
:
Texts:(one AND two)
How can I solve this?