pagees

package
v1.0.1-dev-02 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2024 License: MulanPSL-2.0 Imports: 16 Imported by: 0

Documentation

Index

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) MatchQuery

func (this *PageEsQuery) MatchQuery() []elastic.Query

text

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) EsCount

func (this *PageEsRequest) EsCount() (int64, error)

排序字段是keyword

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 FindBeanPageEsResult

func FindBeanPageEsResult() *PageEsResult

FindBeanPageEsResult

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL