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

Allow to explain how analyzer was composed #29445

Closed
medcl opened this issue Apr 10, 2018 · 3 comments
Closed

Allow to explain how analyzer was composed #29445

medcl opened this issue Apr 10, 2018 · 3 comments
Labels
discuss :Search Relevance/Analysis How text is split into tokens Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch

Comments

@medcl
Copy link
Contributor

medcl commented Apr 10, 2018

Currently, we have many nice built-in analyzers and also can custom our own, they are various.

For customized analyzer, we can get the definition from the index settings, and for built-in one, we need to navigate to the docs or refer to the source code.

Sometimes, for better understanding the analysis result, we may hope to know what is the components of an analyzer, specifically, which [char_filters]/tokenizer/[filters] are behind, so how about provide a API, allow user to explain the analyzer by provide the name of the analyzer?

@medcl medcl added the discuss label Apr 10, 2018
@jpountz jpountz added the :Search Relevance/Analysis How text is split into tokens label Apr 10, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search-aggs

@jpountz
Copy link
Contributor

jpountz commented Apr 10, 2018

This is something that we can't even do internally: once analyzers are created there is no way to know their components. This feature would have a significant cost, while we already document how they are built. I don't think we should add this feature.

@nik9000
Copy link
Member

nik9000 commented Apr 12, 2018

Since we already document these I think we're safe not to implement something special for this. I do think we should add some test for this and we should be more consistent with how we tell people how they can be recreated. So I filed #29499 which I consider a replacement for this one.

@nik9000 nik9000 closed this as completed Apr 12, 2018
@javanna javanna added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss :Search Relevance/Analysis How text is split into tokens Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch
Projects
None yet
Development

No branches or pull requests

5 participants