I'm using Kibana edit query DSL feature to try and filter for a URL structure. I have 2 types of urls:
/products/example/example2
/products/example
I'm trying to produce a query that will match /products/example NOT both. The query always seems to return no results but I'm 100% confident that there are results with just /products/example. Here is the query it products:
{
"bool": {
"must": [],
"filter": [
{
"match_phrase": {
"request.url": "/products/*"
}
}
],
"should": [],
"must_not": [
{
"match_phrase": {
"request.url": "/products/*/*"
}
}
]
}
}