-
Notifications
You must be signed in to change notification settings - Fork 25.4k
Closed
Labels
:Search/SearchSearch-related issues that do not fall into other categoriesSearch-related issues that do not fall into other categories>featurerelease highlightv7.0.0
Description
Lucene 7.4 adds a new IntervalQuery, intended as a longer-term replacement for the Spans family. This should be available through the Query DSL.
The query looks something like this:
POST _search
{
"query": {
"intervals": {
"my_text": {
"all_of": {
"max_gaps": 1,
"ordered": true,
"intervals": [
{
"match": {
"query": "cold slimy porridge",
"analyzer": "",
"ordered": false,
"max_gaps": 1
}
},
{
"match": {
"query": "cold slimy porridge",
"analyzer": "",
"ordered": false,
"max_gaps": 1
}
}
],
"filter": {
"containing": {
"match": {
"query": "cold slimy porridge",
"analyzer": "",
"ordered": false,
"max_gaps": 1
}
}
}
}
}
}
}
}
jpountz, mattweber and nezda
Metadata
Metadata
Assignees
Labels
:Search/SearchSearch-related issues that do not fall into other categoriesSearch-related issues that do not fall into other categories>featurerelease highlightv7.0.0