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

[Feature Request] UBI should be able to accept custom attributes #13604

Open
jzonthemtn opened this issue May 8, 2024 · 1 comment
Open

[Feature Request] UBI should be able to accept custom attributes #13604

jzonthemtn opened this issue May 8, 2024 · 1 comment
Assignees
Labels
enhancement Enhancement or improvement to existing feature or request Search:User Behavior Insights

Comments

@jzonthemtn
Copy link

jzonthemtn commented May 8, 2024

Is your feature request related to a problem? Please describe

UBI allows queries to have a client-side generated query_id, along with optional user_query, object_id, and client_id values. It would be nice to allow the client to send custom attributes to associate with the query.

Describe the solution you'd like

The client should be able to send custom attributes in the ubi block of ext in search requests. For instance, to send a store_id, the user could send a request:

#!/bin/bash -e

curl http://localhost:9200/ecommerce/_search -H "Content-Type: application/json" -d'
 {
  "ext": {
   "ubi": {
     "query_id": "12300d16cb-b6f1-4012-93ebcc49cac90426",
     "user_query": "toner",
     "object_id": "name,
     "client-id": "01dabe13-3d25-42d2-a8f8-be459df2105d",
     "store_id": "store1"
    }
   },
   "query": {
     "match": {
       "name": "toner"
     }
   }
 }'

Additional context

This relates to UBI which is described in #12084 and #13545.

This issue can be assigned to myself.

@jzonthemtn jzonthemtn added enhancement Enhancement or improvement to existing feature or request untriaged labels May 8, 2024
@github-actions github-actions bot added the Other label May 8, 2024
@andrross
Copy link
Member

andrross commented May 8, 2024

[Triage - attendees 1 2 3 4]
@jzonthemtn Thanks for filing. Looking forward to seeing progress here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request Search:User Behavior Insights
Projects
None yet
Development

No branches or pull requests

2 participants