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 Support for Metadata in ElasticSearch Queries(query|suggest) #70417

Closed
abhijeetKumarCompass opened this issue Mar 15, 2021 · 2 comments
Closed
Labels
:Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team

Comments

@abhijeetKumarCompass
Copy link

abhijeetKumarCompass commented Mar 15, 2021

Currently, there is no field in elastic search suggest queries where I can pass metadata to queries. Adding metadata is beneficial in scenarios when query ends up in slow query logs. I can pass details of clientName and work with client to fix their query or access pattern. Further, I can use the metadata to build analytics on slow query logs for further analysis and consumption.

This feature is similar to the analytics tag in elastic app search : https://www.elastic.co/guide/en/app-search/7.8/analytics-tags-guide.html

@abhijeetKumarCompass abhijeetKumarCompass added >enhancement needs:triage Requires assignment of a team area label labels Mar 15, 2021
@abhijeetKumarCompass abhijeetKumarCompass changed the title Adding Metadata to ElasticSearch Suggest and Query fields Add Support for Metadata in ElasticSearch Queries(query|suggest) Mar 15, 2021
@dnhatn
Copy link
Member

dnhatn commented Mar 15, 2021

@abhijeetKumarCompass I think the x-opaque-id parameter would be good enough for your problem. Please see: #31539.

@dnhatn dnhatn added :Search/Search Search-related issues that do not fall into other categories and removed >enhancement needs:triage Requires assignment of a team area label labels Mar 15, 2021
@elasticmachine elasticmachine added the Team:Search Meta label for search team label Mar 15, 2021
@elasticmachine
Copy link
Collaborator

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

@dnhatn dnhatn closed this as completed Mar 15, 2021
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 Team:Search Meta label for search team
Projects
None yet
Development

No branches or pull requests

3 participants