We are using the content-search API and running into an issue with searching a posts metadata. The metadata in a post is like this:
We are searching for it like this, but we do not get any posts back. It returns nothing. I removed the API key and userid from this code for this post:
{
"apiKey": "hidden",
"userId": "hidden",
"categoryId": "71652faa3729304f3bbc369849f6708e",
"populatePostObject": true,
"from": 0,
"size": 5,
"query": {
"targetId": [
"64af01593714fddb10e0c7d2"
],
"targetType": "community",
"metadata": {
"type": "normalBattle"
}
},
"sort": [
{
"createdAt": {
"order": "desc"
}
}
]
}
Any ideas?