Documentation ¶
Index ¶
- func InjectIchubPageEsRequest(s *PageEsRequest)
- func InjectPageEsResult(s *PageEsResult)
- func LoadIchubPageEsRequest() baseiface.ISingleton
- func LoadPageEsResult() baseiface.ISingleton
- type PageEsQuery
- func (this *PageEsQuery) AddGroup(field *dto2.QueryField, query elastic.Query) elastic.Query
- func (this *PageEsQuery) BuildBoolQuery(esreq *PageEsRequest) *elastic.BoolQuery
- func (this *PageEsQuery) BuildQuery() *elastic.BoolQuery
- func (this *PageEsQuery) FuzzyQuery() []elastic.Query
- func (this *PageEsQuery) IdQuery() []elastic.Query
- func (this *PageEsQuery) IdsQuery() []elastic.Query
- func (this *PageEsQuery) MatchAllQuery() []elastic.Query
- func (this *PageEsQuery) MatchPhrase() []elastic.Query
- func (this *PageEsQuery) MatchQuery() []elastic.Query
- func (this *PageEsQuery) RangeQuery() []elastic.Query
- func (this *PageEsQuery) RegexpQuery() []elastic.Query
- func (this *PageEsQuery) TermQuery() []elastic.Query
- func (this *PageEsQuery) TermsQuery() []elastic.Query
- func (this *PageEsQuery) WildcardQuery() []elastic.Query
- type PageEsRequest
- func (this *PageEsRequest) AddGroup(field *dto.QueryField, query elastic.Query) elastic.Query
- func (self *PageEsRequest) BuildBoolQuery() *elastic.BoolQuery
- func (this *PageEsRequest) BuildSource(service *elastic.SearchService)
- func (this *PageEsRequest) Clear()
- func (this *PageEsRequest) Default()
- func (this *PageEsRequest) EsBoolQuery() (*elastic.SearchResult, error)
- func (this *PageEsRequest) EsBoolQueryResult() (*PageEsResult, error)
- func (this *PageEsRequest) EsCount() (int64, error)
- func (this *PageEsRequest) EsFilter() *PageEsRequest
- func (this *PageEsRequest) EsFindId(id string) (*elastic.GetResult, error)
- func (this *PageEsRequest) EsFindIds(ids ...string) (*elastic.SearchResult, error)
- func (this *PageEsRequest) EsFindTerm(field string, value interface{}) (*elastic.SearchResult, error)
- func (this *PageEsRequest) EsFindTerms(key string, values ...interface{}) (*elastic.SearchResult, error)
- func (this *PageEsRequest) EsFuzzy(field string, opValue interface{}) *PageEsRequest
- func (this *PageEsRequest) EsGetMapping(indexName string) (map[string]interface{}, error)
- func (this *PageEsRequest) EsId(opValue interface{}) *PageEsRequest
- func (this *PageEsRequest) EsIds(opValues []interface{}) *PageEsRequest
- func (this *PageEsRequest) EsMatch(field string, opValue interface{}) *PageEsRequest
- func (this *PageEsRequest) EsMatchAll() *PageEsRequest
- func (this *PageEsRequest) EsMatchPhrase(field string, opValue interface{}) *PageEsRequest
- func (this *PageEsRequest) EsMust() *PageEsRequest
- func (this *PageEsRequest) EsMustNot() *PageEsRequest
- func (this *PageEsRequest) EsQuery() (*elastic.SearchResult, error)
- func (this *PageEsRequest) EsQueryResult() (*PageEsResult, error)
- func (this *PageEsRequest) EsRange(field string, opValue ...interface{}) *PageEsRequest
- func (this *PageEsRequest) EsRegexp(field string, opValue interface{}) *PageEsRequest
- func (this *PageEsRequest) EsShould() *PageEsRequest
- func (this *PageEsRequest) EsTerm(field string, opValue any) *PageEsRequest
- func (this *PageEsRequest) EsTerms(field string, opValues ...interface{}) *PageEsRequest
- func (this *PageEsRequest) EsWildcard(field string, opValues ...interface{}) *PageEsRequest
- func (this *PageEsRequest) IfFilter() bool
- func (self *PageEsRequest) IfIndexMulti() bool
- func (this *PageEsRequest) IfMust() bool
- func (this *PageEsRequest) IfMustNot() bool
- func (this *PageEsRequest) IfShould() bool
- func (this *PageEsRequest) Ini(clientDto *baseconfig.ElasticClientDto)
- func (this *PageEsRequest) Nest(subs ...*PageEsRequest) *PageEsRequest
- func (this *PageEsRequest) Open()
- func (self *PageEsRequest) SetPageCurrent(current int) *PageEsRequest
- func (self *PageEsRequest) SetPageSize(size int) *PageEsRequest
- func (this *PageEsRequest) ValueOfPageRequest(that *PageEsRequest) *PageEsRequest
- type PageEsResult
- func DefaultResult() *PageEsResult
- func FailedPageEsResult(msg string) *PageEsResult
- func FailedPageEsResultErr(err error) *PageEsResult
- func FindBeanPageEsResult() *PageEsResult
- func NewIchubPageEsResult() *PageEsResult
- func PageEsResultOfSearch(SearchResult *elastic.SearchResult, attach bool) (pes *PageEsResult)
- func (pes *PageEsResult) As(out interface{}) *PageEsResult
- func (pes *PageEsResult) DataAsArrays() []map[string]interface{}
- func (pes *PageEsResult) FailMsg(Msg string) *PageEsResult
- func (pes *PageEsResult) From(result *basedto.IchubResult) *PageEsResult
- func (pes *PageEsResult) FromHitsHits(hits []*elastic.SearchHit) *PageEsResult
- func (pes *PageEsResult) FromJson(body []byte) interface{}
- func (pes *PageEsResult) Hits2Map(indexmulti bool, hits []*elastic.SearchHit) []map[string]any
- func (pes *PageEsResult) Hits2Sources(hits []*elastic.SearchHit) *[]json.RawMessage
- func (pes *PageEsResult) Init()
- func (pes *PageEsResult) InitPage()
- func (pes *PageEsResult) PageEsResultData2Map()
- func (pes *PageEsResult) PageEsResultOf(request *PageEsRequest, searchRes *elastic.SearchResult)
- func (pes *PageEsResult) PageEsResultOfSearch(searchRes *elastic.SearchResult, attach bool) *PageEsResult
- func (pes *PageEsResult) Shutdown()
- func (pes *PageEsResult) ValueOfRequest(req *PageEsRequest)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectIchubPageEsRequest ¶
func InjectIchubPageEsRequest(s *PageEsRequest)
func InjectPageEsResult ¶
func InjectPageEsResult(s *PageEsResult)
func LoadIchubPageEsRequest ¶
func LoadIchubPageEsRequest() baseiface.ISingleton
func LoadPageEsResult ¶
func LoadPageEsResult() baseiface.ISingleton
Types ¶
type PageEsQuery ¶
type PageEsQuery struct {
// contains filtered or unexported fields
}
func NewPageEsQuery ¶
func NewPageEsQuery(pageReq *PageEsRequest) *PageEsQuery
func (*PageEsQuery) AddGroup ¶
func (this *PageEsQuery) AddGroup(field *dto2.QueryField, query elastic.Query) elastic.Query
func (*PageEsQuery) BuildBoolQuery ¶
func (this *PageEsQuery) BuildBoolQuery(esreq *PageEsRequest) *elastic.BoolQuery
func (*PageEsQuery) BuildQuery ¶
func (this *PageEsQuery) BuildQuery() *elastic.BoolQuery
func (*PageEsQuery) FuzzyQuery ¶
func (this *PageEsQuery) FuzzyQuery() []elastic.Query
func (*PageEsQuery) IdQuery ¶
func (this *PageEsQuery) IdQuery() []elastic.Query
func (*PageEsQuery) IdsQuery ¶
func (this *PageEsQuery) IdsQuery() []elastic.Query
func (*PageEsQuery) MatchAllQuery ¶
func (this *PageEsQuery) MatchAllQuery() []elastic.Query
func (*PageEsQuery) MatchPhrase ¶
func (this *PageEsQuery) MatchPhrase() []elastic.Query
func (*PageEsQuery) RangeQuery ¶
func (this *PageEsQuery) RangeQuery() []elastic.Query
func (*PageEsQuery) RegexpQuery ¶
func (this *PageEsQuery) RegexpQuery() []elastic.Query
func (*PageEsQuery) TermQuery ¶
func (this *PageEsQuery) TermQuery() []elastic.Query
match term keyword
func (*PageEsQuery) TermsQuery ¶
func (this *PageEsQuery) TermsQuery() []elastic.Query
func (*PageEsQuery) WildcardQuery ¶
func (this *PageEsQuery) WildcardQuery() []elastic.Query
type PageEsRequest ¶
type PageEsRequest struct { basedto.BaseEntity *page.PageRequest *esdto.EsRequest AttachResp bool `json:"-"` PageEsRequests []*PageEsRequest PageEsBoolTypes []int MustQuery []elastic.Query `json:"-"` MustnotQuery []elastic.Query `json:"-"` ShouldQuery []elastic.Query `json:"-"` FilterQuery []elastic.Query `json:"-"` }
func Default ¶
func Default() *PageEsRequest
func FindBeanIchubPageEsRequest ¶
func FindBeanIchubPageEsRequest() *PageEsRequest
func NewEsRequest ¶
func NewEsRequest(pageSize, current int) *PageEsRequest
func NewPageEsRequest ¶
func NewPageEsRequest(indexName string) *PageEsRequest
func (*PageEsRequest) AddGroup ¶
func (this *PageEsRequest) AddGroup(field *dto.QueryField, query elastic.Query) elastic.Query
func (*PageEsRequest) BuildBoolQuery ¶
func (self *PageEsRequest) BuildBoolQuery() *elastic.BoolQuery
func (*PageEsRequest) BuildSource ¶
func (this *PageEsRequest) BuildSource(service *elastic.SearchService)
func (*PageEsRequest) Clear ¶
func (this *PageEsRequest) Clear()
func (*PageEsRequest) Default ¶
func (this *PageEsRequest) Default()
func (*PageEsRequest) EsBoolQuery ¶
func (this *PageEsRequest) EsBoolQuery() (*elastic.SearchResult, error)
func (*PageEsRequest) EsBoolQueryResult ¶
func (this *PageEsRequest) EsBoolQueryResult() (*PageEsResult, error)
func (*PageEsRequest) EsFilter ¶
func (this *PageEsRequest) EsFilter() *PageEsRequest
func (*PageEsRequest) EsFindId ¶
func (this *PageEsRequest) EsFindId(id string) (*elastic.GetResult, error)
func (*PageEsRequest) EsFindIds ¶
func (this *PageEsRequest) EsFindIds(ids ...string) (*elastic.SearchResult, error)
func (*PageEsRequest) EsFindTerm ¶
func (this *PageEsRequest) EsFindTerm(field string, value interface{}) (*elastic.SearchResult, error)
func (*PageEsRequest) EsFindTerms ¶
func (this *PageEsRequest) EsFindTerms(key string, values ...interface{}) (*elastic.SearchResult, error)
func (*PageEsRequest) EsFuzzy ¶
func (this *PageEsRequest) EsFuzzy(field string, opValue interface{}) *PageEsRequest
func (*PageEsRequest) EsGetMapping ¶
func (this *PageEsRequest) EsGetMapping(indexName string) (map[string]interface{}, error)
func (*PageEsRequest) EsId ¶
func (this *PageEsRequest) EsId(opValue interface{}) *PageEsRequest
func (*PageEsRequest) EsIds ¶
func (this *PageEsRequest) EsIds(opValues []interface{}) *PageEsRequest
func (*PageEsRequest) EsMatch ¶
func (this *PageEsRequest) EsMatch(field string, opValue interface{}) *PageEsRequest
func (*PageEsRequest) EsMatchAll ¶
func (this *PageEsRequest) EsMatchAll() *PageEsRequest
func (*PageEsRequest) EsMatchPhrase ¶
func (this *PageEsRequest) EsMatchPhrase(field string, opValue interface{}) *PageEsRequest
func (*PageEsRequest) EsMust ¶
func (this *PageEsRequest) EsMust() *PageEsRequest
func (*PageEsRequest) EsMustNot ¶
func (this *PageEsRequest) EsMustNot() *PageEsRequest
func (*PageEsRequest) EsQuery ¶
func (this *PageEsRequest) EsQuery() (*elastic.SearchResult, error)
func (*PageEsRequest) EsQueryResult ¶
func (this *PageEsRequest) EsQueryResult() (*PageEsResult, error)
func (*PageEsRequest) EsRange ¶
func (this *PageEsRequest) EsRange(field string, opValue ...interface{}) *PageEsRequest
func (*PageEsRequest) EsRegexp ¶
func (this *PageEsRequest) EsRegexp(field string, opValue interface{}) *PageEsRequest
func (*PageEsRequest) EsShould ¶
func (this *PageEsRequest) EsShould() *PageEsRequest
func (*PageEsRequest) EsTerm ¶
func (this *PageEsRequest) EsTerm(field string, opValue any) *PageEsRequest
func (*PageEsRequest) EsTerms ¶
func (this *PageEsRequest) EsTerms(field string, opValues ...interface{}) *PageEsRequest
func (*PageEsRequest) EsWildcard ¶
func (this *PageEsRequest) EsWildcard(field string, opValues ...interface{}) *PageEsRequest
func (*PageEsRequest) IfFilter ¶
func (this *PageEsRequest) IfFilter() bool
func (*PageEsRequest) IfIndexMulti ¶
func (self *PageEsRequest) IfIndexMulti() bool
func (*PageEsRequest) IfMust ¶
func (this *PageEsRequest) IfMust() bool
func (*PageEsRequest) IfMustNot ¶
func (this *PageEsRequest) IfMustNot() bool
func (*PageEsRequest) IfShould ¶
func (this *PageEsRequest) IfShould() bool
func (*PageEsRequest) Ini ¶
func (this *PageEsRequest) Ini(clientDto *baseconfig.ElasticClientDto)
func (*PageEsRequest) Nest ¶
func (this *PageEsRequest) Nest(subs ...*PageEsRequest) *PageEsRequest
func (*PageEsRequest) Open ¶
func (this *PageEsRequest) Open()
func (*PageEsRequest) SetPageCurrent ¶
func (self *PageEsRequest) SetPageCurrent(current int) *PageEsRequest
func (*PageEsRequest) SetPageSize ¶
func (self *PageEsRequest) SetPageSize(size int) *PageEsRequest
func (*PageEsRequest) ValueOfPageRequest ¶
func (this *PageEsRequest) ValueOfPageRequest(that *PageEsRequest) *PageEsRequest
type PageEsResult ¶
type PageEsResult struct { basedto.BaseEntity page.PageResult RequestId string `json:"request_id"` SearchResult *elastic.SearchResult `json:"search_result,omitempty"` }
func DefaultResult ¶
func DefaultResult() *PageEsResult
func FailedPageEsResult ¶
func FailedPageEsResult(msg string) *PageEsResult
func FailedPageEsResultErr ¶
func FailedPageEsResultErr(err error) *PageEsResult
func NewIchubPageEsResult ¶
func NewIchubPageEsResult() *PageEsResult
func PageEsResultOfSearch ¶
func PageEsResultOfSearch(SearchResult *elastic.SearchResult, attach bool) (pes *PageEsResult)
@Title 文件名称: pageesresponse.go @Description 描述: es响应消息
@Author 作者: leijianming@163.com 时间(2024-02-22 22:38:21) @Update 作者: leijianming@163.com 时间(2024-02-21 22:38:21)
func (*PageEsResult) As ¶
func (pes *PageEsResult) As(out interface{}) *PageEsResult
func (*PageEsResult) DataAsArrays ¶
func (pes *PageEsResult) DataAsArrays() []map[string]interface{}
func (*PageEsResult) FailMsg ¶
func (pes *PageEsResult) FailMsg(Msg string) *PageEsResult
func (*PageEsResult) From ¶
func (pes *PageEsResult) From(result *basedto.IchubResult) *PageEsResult
func (*PageEsResult) FromHitsHits ¶
func (pes *PageEsResult) FromHitsHits(hits []*elastic.SearchHit) *PageEsResult
func (*PageEsResult) FromJson ¶
func (pes *PageEsResult) FromJson(body []byte) interface{}
func (*PageEsResult) Hits2Map ¶
func (pes *PageEsResult) Hits2Map(indexmulti bool, hits []*elastic.SearchHit) []map[string]any
func (*PageEsResult) Hits2Sources ¶
func (pes *PageEsResult) Hits2Sources(hits []*elastic.SearchHit) *[]json.RawMessage
func (*PageEsResult) Init ¶
func (pes *PageEsResult) Init()
func (*PageEsResult) InitPage ¶
func (pes *PageEsResult) InitPage()
func (*PageEsResult) PageEsResultData2Map ¶
func (pes *PageEsResult) PageEsResultData2Map()
func (*PageEsResult) PageEsResultOf ¶
func (pes *PageEsResult) PageEsResultOf(request *PageEsRequest, searchRes *elastic.SearchResult)
func (*PageEsResult) PageEsResultOfSearch ¶
func (pes *PageEsResult) PageEsResultOfSearch(searchRes *elastic.SearchResult, attach bool) *PageEsResult
func (*PageEsResult) Shutdown ¶
func (pes *PageEsResult) Shutdown()
func (*PageEsResult) ValueOfRequest ¶
func (pes *PageEsResult) ValueOfRequest(req *PageEsRequest)
Click to show internal directories.
Click to hide internal directories.