Documentation ¶ Index ¶ type By type Mode type Order type Type func (sort *Type) Do(search *elastic.SearchService) *elastic.SearchService func (sort *Type) SetBy(by By) *Type func (sort *Type) SetMode(mode Mode) *Type func (sort *Type) SetOrder(order Order) *Type Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type By ¶ type By string const ( ByCollectionDateStart By = "collection.start_date" ByCollectionDateEnd By = "collection.end_date" ByCollectionDatePrecision By = "collection.date_precision.key" ByReleaseDate By = "release_date" ByGeoCoordinates By = "location.geo_hash" ) type Mode ¶ type Mode string const ( ModeMinimum Mode = "min" ModeMaximum Mode = "max" ModeSum Mode = "sum" ModeAverage Mode = "avg" ) type Order ¶ type Order int const ( OrderAscending Order = iota OrderDescending ) type Type ¶ type Type struct { Order Order By By Mode Mode } func (*Type) Do ¶ func (sort *Type) Do(search *elastic.SearchService) *elastic.SearchService func (*Type) SetBy ¶ func (sort *Type) SetBy(by By) *Type func (*Type) SetMode ¶ func (sort *Type) SetMode(mode Mode) *Type func (*Type) SetOrder ¶ func (sort *Type) SetOrder(order Order) *Type Source Files ¶ View all Source files sort.go Click to show internal directories. Click to hide internal directories.