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

Can there be a syntax similar to phrase query for interval query? #112269

Closed
S-Dragon0302 opened this issue Aug 28, 2024 · 4 comments
Closed

Can there be a syntax similar to phrase query for interval query? #112269

S-Dragon0302 opened this issue Aug 28, 2024 · 4 comments
Assignees
Labels
>enhancement :Search Relevance/Search Catch all for Search Relevance Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch

Comments

@S-Dragon0302
Copy link

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"
}
}

@S-Dragon0302 S-Dragon0302 added >enhancement needs:triage Requires assignment of a team area label labels Aug 28, 2024
@gwbrown gwbrown added :Search Foundations/Search Catch all for Search Foundations and removed needs:triage Requires assignment of a team area label labels Aug 28, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

@elasticsearchmachine elasticsearchmachine added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Aug 28, 2024
@S-Dragon0302
Copy link
Author

Is there any progress on this?

@javanna javanna added :Search Relevance/Search Catch all for Search Relevance and removed :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch labels Jan 6, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Jan 6, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

@mayya-sharipova mayya-sharipova self-assigned this Jan 9, 2025
@mayya-sharipova
Copy link
Contributor

Sorry, this is not something we will implement.
There is already a way to do phrase query through interval queries, and as you noted there is already a way to accomplish what you wanted. So, we will not add additional syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Search Relevance/Search Catch all for Search Relevance Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch
Projects
None yet
Development

No branches or pull requests

5 participants