Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make IntervalQuery available via the Query DSL #29636

Closed
romseygeek opened this issue Apr 20, 2018 · 3 comments
Closed

Make IntervalQuery available via the Query DSL #29636

romseygeek opened this issue Apr 20, 2018 · 3 comments
Labels
>feature release highlight :Search/Search Search-related issues that do not fall into other categories v7.0.0

Comments

@romseygeek
Copy link
Contributor

romseygeek commented Apr 20, 2018

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
              }
            }
          }
        }
      }
    }
  }
}
@romseygeek romseygeek added >feature :Search/Search Search-related issues that do not fall into other categories v7.0.0 labels Apr 20, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search-aggs

@mattweber
Copy link
Contributor

@romseygeek Can you please make interval sources pluggable while working on this?

@romseygeek
Copy link
Contributor Author

Closed by #36135

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>feature release highlight :Search/Search Search-related issues that do not fall into other categories v7.0.0
Projects
None yet
Development

No branches or pull requests

4 participants