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

[DOCS] "Escape" flag for "query_string" is not documented #77604

Open
Ronserruya opened this issue Sep 12, 2021 · 3 comments
Open

[DOCS] "Escape" flag for "query_string" is not documented #77604

Ronserruya opened this issue Sep 12, 2021 · 3 comments
Labels
>docs General docs changes :Search Relevance/Search Catch all for Search Relevance Team:Docs Meta label for docs team Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch

Comments

@Ronserruya
Copy link

Following a question on StackOverflow: https://stackoverflow.com/questions/69149461/what-is-escape-property-in-query-string-in-elasticsearch

The "escape" flag for query_string is not documented, and it's unclear what it does exactly
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html

As far as I understand, according to the source code

String rewrittenQueryString = escape ? org.apache.lucene.queryparser.classic.QueryParser.escape(this.queryString) : queryString;

Es calls https://lucene.apache.org/core/6_6_2/queryparser/org/apache/lucene/queryparser/classic/QueryParserBase.html#escape-java.lang.String-

To escape the string

I verified that the flag itself is accepted on ES 7.3 and 7.14 (although Kibana doesn't autocomplete it, but maybe this is a separate issue)

@Ronserruya Ronserruya added >bug needs:triage Requires assignment of a team area label labels Sep 12, 2021
@nik9000 nik9000 added :Search/Search Search-related issues that do not fall into other categories >docs General docs changes team-discuss and removed needs:triage Requires assignment of a team area label labels Sep 15, 2021
@elasticmachine elasticmachine added Team:Search Meta label for search team Team:Docs Meta label for docs team labels Sep 15, 2021
@elasticmachine
Copy link
Collaborator

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

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-docs (Team:Docs)

@jrodewig jrodewig self-assigned this Oct 26, 2021
@jrodewig jrodewig removed their assignment Nov 16, 2021
@lockewritesdocs lockewritesdocs removed the Team:Docs Meta label for docs team label Apr 28, 2022
@elasticsearchmachine elasticsearchmachine added the Team:Docs Meta label for docs team label May 3, 2023
@abdonpijpelink abdonpijpelink removed their assignment Jan 26, 2024
@javanna javanna added :Search Relevance/Search Catch all for Search Relevance and removed :Search/Search Search-related issues that do not fall into other categories labels Jul 17, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Jul 17, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine elasticsearchmachine removed the Team:Search Meta label for search team label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>docs General docs changes :Search Relevance/Search Catch all for Search Relevance Team:Docs Meta label for docs team Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch
Projects
None yet
Development

No branches or pull requests

9 participants