Hi,
I have the following example scenario:
curl -XPUT 'http://localhost:9200/test/asset/1' -d '{
"asset" : {
"type" : "obj",
"attr" : [
{ "name" : "filename", "variants" : [ { "variant" : ["de_at",
"de_de", "en_gb", "en_us"], "value" : "myFile.doc" } ] },
{ "name" : "mimetype", "variants" : [ { "variant" : ["de_at",
"de_de", "en_gb", "en_us"], "value" : "application/msword" } ] },
{ "name" : "keywords", "variants" : [ { "variant" : ["de_at",
"de_de"], "value" : ["lebenslauf", "anschreiben"] }, { "variant" :
["en_gb", "en_us"], "value" : ["cv", "application"] } ] }
]
}
}'
curl -XPUT 'http://localhost:9200/test/asset/2' -d '{
"asset" : {
"type" : "obj",
"attr" : [
{ "name" : "filename", "variants" : [ { "variant" : ["de_at",
"de_de", "en_gb", "en_us"], "value" : "myOtherFile.doc" } ] },
{ "name" : "mimetype", "variants" : [ { "variant" : ["de_at",
"de_de", "en_gb", "en_us"], "value" : "application/msword" } ] },
{ "name" : "keywords", "variants" : [ { "variant" : ["de_at",
"de_de"], "value" : ["myFile.doc"] }, { "variant" : ["en_gb", "en_us"],
"value" : ["myOtherFile.doc"] } ] }
]
}
}'
Is it possible to search a certain attribute and from there in a
containing value?
E.g. search attr-name 'keywords' and all 'keywords' having variant
'en_gb' and value 'myOtherFile.doc'?
Best regards, Jan.