Documentation ¶
Index ¶
- type EsMod
- func (that *EsMod) Close()
- func (that *EsMod) ComplexFuzzinessQuery(match_data, wildcard_data []map[string]string, MinimumShouldMatch int) ([]map[string]string, int64)
- func (that *EsMod) ComplexQuery(match_data, wildcard_data []map[string]string, MinimumShouldMatch int) ([]map[string]string, int64)
- func (that *EsMod) Connect(url string) bool
- func (that *EsMod) CreateIndex() bool
- func (that *EsMod) DelIndex() bool
- func (that *EsMod) DeleteDoc(id string) (*elastic.DeleteResponse, error)
- func (that *EsMod) IndexExists() bool
- func (that *EsMod) Init() *EsMod
- func (that *EsMod) InsertDoc() (*elastic.IndexResponse, error)
- func (that *EsMod) LikeQuery(fdname, fdvalue string) []map[string]string
- func (that *EsMod) MultiFuzzinessQuery(fuzz_data []map[string]string, minimumShouldMatch int) ([]map[string]string, int64)
- func (that *EsMod) MultiMatchQuery(searchKeyword string, fdname ...string) []map[string]string
- func (that *EsMod) MultiWildcardQuery(wildcard_data []map[string]string, MinimumShouldMatch int) ([]map[string]string, int64)
- func (that *EsMod) QueryAll() []map[string]string
- func (that *EsMod) SetData(data map[string]interface{}) *EsMod
- func (that *EsMod) SetIndexName(indexname string) *EsMod
- func (that *EsMod) SetPageNo(pageno int) *EsMod
- func (that *EsMod) SetPageSize(pagesize int) *EsMod
- func (that *EsMod) UpdateDoc(id string) (*elastic.UpdateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EsMod ¶
type EsMod struct { DocData map[string]interface{} Client *elastic.Client Ctx context.Context PageSize, PageNo int IndexName string }
func (*EsMod) ComplexFuzzinessQuery ¶
func (*EsMod) ComplexQuery ¶
func (*EsMod) CreateIndex ¶
func (*EsMod) IndexExists ¶
func (*EsMod) MultiFuzzinessQuery ¶
func (*EsMod) MultiMatchQuery ¶
func (*EsMod) MultiWildcardQuery ¶
func (*EsMod) SetIndexName ¶
func (*EsMod) SetPageSize ¶
Click to show internal directories.
Click to hide internal directories.