Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Fixing query attributes null.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzonthemtn committed May 29, 2024
1 parent 7374424 commit 2e6d500
Showing 1 changed file with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,30 @@

- gte: { hits.total: 1 }

- do:
search:
rest_total_hits_as_int: true
index: ecommerce
body: "{\"query\": {\"match\": {\"category\": \"notebook\"}}, \"ext\": {\"ubi\": {\"query_id\": \"abcdef\", \"client_id\": \"abcabc\", \"user_query\": \"notebook\"}}}"

- gte: { hits.total: 1 }

- do:
search:
rest_total_hits_as_int: true
index: ecommerce
body: "{\"query\": {\"match\": {\"category\": \"notebook\"}}, \"ext\": {\"ubi\": {}}}"

- gte: { hits.total: 1 }

- do:
search:
rest_total_hits_as_int: true
index: ecommerce
body: "{\"query\": {\"match\": {\"category\": \"notebook\"}}}"

- gte: { hits.total: 1 }

- do:
cluster.health:
index: [ubi_queries]
Expand All @@ -59,4 +83,4 @@
index: ubi_queries
body: {}

- match: {count : 2}
- match: {count : 4}

0 comments on commit 2e6d500

Please sign in to comment.