Closed ido50 closed 4 years ago
This PR adds the ability to use the "sort", "_source" and "post_filter" attributes in search requests, via the new methods Sort, SourceIncludes and SourceExcludes.
Sort
SourceIncludes
SourceExcludes
For example:
esquery.Search(). Query(...). Aggs(...). Sort("field_1", esquery.OrderAsc). Sort("field_2", esquery.OrderDesc). PostFilter(esquery.Range(field).Gt(0)). SourceIncludes("field_1", "field_2"). SourceExcludes("field_3"). Run(...)
@oranmoshai
This PR adds the ability to use the "sort", "_source" and "post_filter" attributes in search requests, via the new methods
Sort
,SourceIncludes
andSourceExcludes
.For example: