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

Add wildcard and prefix intervals #43198

Closed
romseygeek opened this issue Jun 13, 2019 · 1 comment · Fixed by #43691
Closed

Add wildcard and prefix intervals #43198

romseygeek opened this issue Jun 13, 2019 · 1 comment · Fixed by #43691
Assignees
Labels
:Search/Search Search-related issues that do not fall into other categories

Comments

@romseygeek
Copy link
Contributor

We should expose the wildcard and prefix IntervalSource implementations
as providers in elasticsearch.

{ "prefix" : {
    "term" : term prefix,
    "analyzer" : optional analyzer (uses normalize() function),
    "use_field" : optional field switch
}}
{ "wildcard" : {
    "term" : term glob,
    "analyzer" : optional analyzer (uses normalize() function),
    "use_field" : optional field switch
}}

Span queries also allow you to wrap regexp and term range queries, and we can
consider adding these here as well, although they will also require some work in
lucene.

The prefix source can piggy-back on text fields index_prefixes functionality to
rewrite to simple term intervals sources

@romseygeek romseygeek added the :Search/Search Search-related issues that do not fall into other categories label Jun 13, 2019
@romseygeek romseygeek self-assigned this Jun 13, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

romseygeek added a commit that referenced this issue Jun 26, 2019
This commit adds a prefix intervals source, allowing you to search
for intervals that contain terms starting with a given prefix. The source
can make use of the index_prefixes mapping option.

Relates to #43198
romseygeek added a commit that referenced this issue Jun 26, 2019
This commit adds a prefix intervals source, allowing you to search
for intervals that contain terms starting with a given prefix. The source
can make use of the index_prefixes mapping option.

Relates to #43198
romseygeek added a commit that referenced this issue Jun 28, 2019
This commit adds a wildcard intervals source, similar to the prefix. It
also changes the term parameter in prefix to read prefix, to bring it
in to line with the pattern parameter in wildcard.

Closes #43198
romseygeek added a commit that referenced this issue Jun 28, 2019
This commit adds a wildcard intervals source, similar to the prefix. It
also changes the term parameter in prefix to read prefix, to bring it
in to line with the pattern parameter in wildcard.

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

Successfully merging a pull request may close this issue.

2 participants