Searching arrays/lists

Hi, another try:

I need to search a list of properties, so that both entries match:

{ "keywords" : [
{
"variant" : ["de_at", "de_de"],
"value" : ["lebenslauf", "anschreiben"]
},
{
"variant" : ["en_gb", "en_us"],
"value" : ["cv", "application"]
}
] }

Given this, I'd like to search for 'en_gb' AND 'cv', the match should be
on the second property only. Searching for 'de_de' AND 'cv' should
result in an empty match. Everything I tried resulted in a hit with
'de_de' AND 'cv' as well. Can that be accomplished at all?

Best regards, Jan.

It can only be accomplished if you break it into different documents.

On Thursday, May 26, 2011 at 1:28 PM, Jan Kriesten wrote:

Hi, another try:

I need to search a list of properties, so that both entries match:

{ "keywords" : [
{
"variant" : ["de_at", "de_de"],
"value" : ["lebenslauf", "anschreiben"]
},
{
"variant" : ["en_gb", "en_us"],
"value" : ["cv", "application"]
}
] }

Given this, I'd like to search for 'en_gb' AND 'cv', the match should be
on the second property only. Searching for 'de_de' AND 'cv' should
result in an empty match. Everything I tried resulted in a hit with
'de_de' AND 'cv' as well. Can that be accomplished at all?

Best regards, Jan.