-
Notifications
You must be signed in to change notification settings - Fork 11
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
Conversation
"include_lower": false, | ||
"include_upper": true, | ||
"to": nil, | ||
"gt": value, |
There was a problem hiding this comment.
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}}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
Addresses #126