-
Notifications
You must be signed in to change notification settings - Fork 617
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: strong type dsl builder #526
Comments
Thank you for the suggestion! This is definitely in the long term goals and would qualify as a helper to build specific queries. It would need to be built by hand upon the generated types to carefully chose what to expose which cannot be done as part of the code generation of the whole typed api. I'm flagging this issue as an enhancement and will keep it open for future reference! |
This feature is the biggest gap between olivere and the official lib |
I know from previous pull request notes and issue posts as well as the release notes that the typedapi is in alpha. Is there somewhere to subscribe to news on when it will move past the alpha phase? Thanks! |
Does this include the Filter.query? I rely on this heavily, and am stuck with olivere until I can do this query := elastic.NewBoolQuery() if filter.ObserverType != "" { |
@notque I'm not sure what your s := &search.Request{Query: types.Query{Bool: types.BoolQuery{
Filter: []types.Query{
{
Term: map[string]types.TermQuery{
"field": {Value: "value"},
},
},
},
}}} And run that request through the |
@Anaethelion understood, I wasn't thinking clearly and didn't show the full piece. I will create a new issue to show. Thanks. |
the olivere/elastic supports follow codes:
q := elastic.NewBoolQuery() q.Must(elastic.NewTermQuery("id", "1544175232779030532"))
It's definitely more readable.
The text was updated successfully, but these errors were encountered: