base

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: MulanPSL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EsTypeMust = iota
	EsTypeMustNot
	EsTypeShould
	EsTypeFilter
)

@Title 文件名称: page_consts.go @Description 描述: PageConsts

@Author 作者: leijianming@163.com 时间(2024-02-21 22:38:21) @Update 作者: leijianming@163.com 时间(2024-02-21 22:38:21)

View Source
const (
	Eq = iota
	Ne
	Ge
	Gt
	Le
	Lt
	In
	Like
	Between
	NotIn
	NotLike
	NotBetween

	IsNull
	IsNotNull
	//	es
	EsFuzzy
	EsTerm
	EsTerms

	EsId
	EsIds
	EsMatch
	EsMatchAll
	EsMatchPhrase
	EsMatchPhrasePrefix
	EsPrefix
	EsWildcard
	EsRange
	EsRegexp
)

Variables

View Source
var OpSign = map[int]FieldSign{
	Eq: "=",
	Ne: "!=",
	Ge: ">=",
	Gt: ">",
	Le: "<=",
	Lt: "<",

	In:         "in",
	Like:       "like",
	Between:    "between",
	NotIn:      "not in",
	NotLike:    "not like",
	NotBetween: "not between",
	IsNull:     "is null",
	IsNotNull:  "is not null",

	EsFuzzy:             "fuzzy",
	EsTerm:              "term",
	EsTerms:             "terms",
	EsId:                "id",
	EsIds:               "ids",
	EsMatch:             "match",
	EsMatchAll:          "match-all",
	EsMatchPhrase:       "match-phrase",
	EsMatchPhrasePrefix: "match-phrase-prefix",
	EsPrefix:            "prefix",
	EsWildcard:          "wildcard",
	EsRange:             "range",
	EsRegexp:            "regexp",
}

Functions

This section is empty.

Types

type FieldSign

type FieldSign string

Jump to

Keyboard shortcuts

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