Documentation ¶
Index ¶
- func InjectHttpCliQuery(s *HttpCliQuery)
- func LoadHttpCliQuery() baseiface.ISingleton
- func MakeSlice[T schema.Tabler]() any
- func NewOfTablerType[T schema.Tabler]() T
- type HttpCliQuery
- func (self *HttpCliQuery) Execute() *pagees.PageEsResult
- func (self *HttpCliQuery) GeneralQuerySource() *pagees.PageEsResult
- func (self *HttpCliQuery) Hightlight(value *elastic.Highlight) *HttpCliQuery
- func (self *HttpCliQuery) HttpQuery(query ...elastic.Query) *pagees.PageEsResult
- func (self *HttpCliQuery) HttpQuery2EsResult() *pagees.PageEsResult
- func (self *HttpCliQuery) PageCurrentSize(current, size int) *HttpCliQuery
- func (self *HttpCliQuery) Query(q elastic.Query) *HttpCliQuery
- func (self *HttpCliQuery) QuerySource() *pagees.PageEsResult
- func (self *HttpCliQuery) SetPageCurrent(c int) *HttpCliQuery
- func (self *HttpCliQuery) SetPageSize(size int) *HttpCliQuery
- func (self *HttpCliQuery) SetSource(src string) *HttpCliQuery
- func (self *HttpCliQuery) Sort(value elastic.Sorter) *HttpCliQuery
- func (self *HttpCliQuery) SortAsc(field string) *HttpCliQuery
- func (self *HttpCliQuery) SortBy(values ...elastic.Sorter) *HttpCliQuery
- func (self *HttpCliQuery) SortDesc(field string) *HttpCliQuery
- func (self *HttpCliQuery) SortOne(field string, asc bool) *HttpCliQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectHttpCliQuery ¶
func InjectHttpCliQuery(s *HttpCliQuery)
func LoadHttpCliQuery ¶
func LoadHttpCliQuery() baseiface.ISingleton
func NewOfTablerType ¶
Types ¶
type HttpCliQuery ¶
type HttpCliQuery struct {
*pagereq.QueryRequest
}
func CmsQueryRequest ¶
func CmsQueryRequest[T schema.Tabler](generalQ elastic.Query) *HttpCliQuery
@Title 文件名称: http_cli_query.go @Desp 描述: HttpCliQuery @Company 公司: ichub @Author 作者: leijmdas@163.com 时间: 2024-04-24 22:52:32 @Update 作者: leijmdas@163.com 时间: 2024-04-24 22:52:32
func Default ¶
func Default() *HttpCliQuery
func DefaultOf ¶
func DefaultOf(q elastic.Query) *HttpCliQuery
func (*HttpCliQuery) Execute ¶
func (self *HttpCliQuery) Execute() *pagees.PageEsResult
func (*HttpCliQuery) GeneralQuerySource ¶
func (self *HttpCliQuery) GeneralQuerySource() *pagees.PageEsResult
func (*HttpCliQuery) Hightlight ¶
func (self *HttpCliQuery) Hightlight(value *elastic.Highlight) *HttpCliQuery
func (*HttpCliQuery) HttpQuery ¶
func (self *HttpCliQuery) HttpQuery(query ...elastic.Query) *pagees.PageEsResult
func (*HttpCliQuery) HttpQuery2EsResult ¶
func (self *HttpCliQuery) HttpQuery2EsResult() *pagees.PageEsResult
func (*HttpCliQuery) PageCurrentSize ¶
func (self *HttpCliQuery) PageCurrentSize(current, size int) *HttpCliQuery
func (*HttpCliQuery) Query ¶
func (self *HttpCliQuery) Query(q elastic.Query) *HttpCliQuery
func (*HttpCliQuery) QuerySource ¶
func (self *HttpCliQuery) QuerySource() *pagees.PageEsResult
func (*HttpCliQuery) SetPageCurrent ¶
func (self *HttpCliQuery) SetPageCurrent(c int) *HttpCliQuery
func (*HttpCliQuery) SetPageSize ¶
func (self *HttpCliQuery) SetPageSize(size int) *HttpCliQuery
func (*HttpCliQuery) SetSource ¶
func (self *HttpCliQuery) SetSource(src string) *HttpCliQuery
func (*HttpCliQuery) Sort ¶
func (self *HttpCliQuery) Sort(value elastic.Sorter) *HttpCliQuery
func (*HttpCliQuery) SortAsc ¶
func (self *HttpCliQuery) SortAsc(field string) *HttpCliQuery
func (*HttpCliQuery) SortBy ¶
func (self *HttpCliQuery) SortBy(values ...elastic.Sorter) *HttpCliQuery
func (*HttpCliQuery) SortDesc ¶
func (self *HttpCliQuery) SortDesc(field string) *HttpCliQuery
func (*HttpCliQuery) SortOne ¶
func (self *HttpCliQuery) SortOne(field string, asc bool) *HttpCliQuery
req.Sort("content_id", true)
Click to show internal directories.
Click to hide internal directories.