Can there be a syntax similar to phrase query for interval query? #112269
Labels
>enhancement
:Search Relevance/Search
Catch all for Search Relevance
Team:Search Relevance
Meta label for the Search Relevance team in Elasticsearch
Description
intervals query syntax
{
"intervals":
{
"FilterKeys":
{
"all_of":
{
"ordered": true,
"max_gaps": 5,
"intervals":
[
{
"match":
{
"query": "hello word",
"max_gaps": 0,
"ordered": true
}
},
{
"match":
{
"query": "how to",
"max_gaps": 0,
"ordered": true
}
}
]
},
"boost": 1
}
}
}
intervals_phrase syntax
{
"intervals_phrase":{
"query":"((hello word)~0 (how to)~0)~5",
"field":"FilterKeys",
"ordered":"true"
}
}
The text was updated successfully, but these errors were encountered: