I'm trying to filter/transform a nested collection in my results
I have my root document that contains an array called "Illustrations" that contains a "Tags" array.
Here is my document structure :
{
"Nom": "Jack",
"Illustrations": [
{
"Url": "static/illustrations/Illustrateur/106/Sans titre.png",
"Tags": [
"blue",
"red"
]
"Url": "static/illustrations/Illustrateur/107/Sans titre.png",
"Tags": [
"green",
"white"
]
}
]}
I want to get root documents with a transformed nested collection that contains the specific searched tags
I'm doing a dynamic query in Lucene to make like :
Illustrations,Tags:"green"
I would like my results to be such as :
{
"Nom": "Jack",
"Illustrations": [
{
"Url": "static/illustrations/Illustrateur/107/Sans titre.png",
"Tags": [
"green",
"white"
]
}
]}
How could I manage that throught the raven studio ? With transformers ?
At the end I would like to query the HTTP API.
Many thanks,
Marc