core
core copied to clipboard
Add support to ES queries that contain tags
With the ES upgrade this queries must be supported:
{
"query": {
"bool": {
"must": [
{
"term": {
"contenttype": "news"
}
},
{
"term": {
"categories": "investing"
}
},
{
"term": {
"news.tags": "gas"
}
},
{
"term": {
"news.byline": "jean"
}
}
]
}
}
}
and
{
"query": {
"query_string": {
"query": "+contenttype:news"
}
},
"aggs" : {
"tag" : {
"terms" : {
"field": "tags",
"size" : 20
}
}
},
"size":0
}
PR Core: https://github.com/dotCMS/core/pull/13750
Nolly, please make sure we support tags with spaces in their names, e.g.
https://dotcms.com/codeshare/index.dot?tag=frontend+development
Waiting for https://github.com/dotCMS/core/issues/13797