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

Update elastic query DSL syntax #129

Merged
merged 1 commit into from
May 22, 2024
Merged

Update elastic query DSL syntax #129

merged 1 commit into from
May 22, 2024

Conversation

norkans7
Copy link
Contributor

Addresses #126

"include_lower": false,
"include_upper": true,
"to": nil,
"gt": value,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -9,7 +9,7 @@ func Ids(values ...string) Query {

// Term is a shortcut for a term query
func Term(field string, value any) Query {
return Query{"term": map[string]any{field: value}}
return Query{"term": map[string]any{field: map[string]any{"value": value}}}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

codecov bot commented May 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.75%. Comparing base (d00a4d4) to head (7592b9b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #129      +/-   ##
==========================================
+ Coverage   90.48%   90.75%   +0.27%     
==========================================
  Files          45       45              
  Lines        1723     1709      -14     
==========================================
- Hits         1559     1551       -8     
+ Misses        124      118       -6     
  Partials       40       40              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rowanseymour rowanseymour merged commit 633d4dc into main May 22, 2024
7 checks passed
@rowanseymour rowanseymour deleted the range-queries branch May 22, 2024 18:03
@github-actions github-actions bot locked and limited conversation to collaborators May 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants