Documentation ¶
Index ¶
- Constants
- func AddDocument(ctx context.Context, clt *elasticsearch.Client, dao SearchDao) error
- func BulkAddDocument(ctx context.Context, clt *elasticsearch.Client, dao []SearchDao) error
- func BulkAddDocumentWithIndex(ctx context.Context, clt *elasticsearch.Client, index string, dao []SearchDao) error
- func CreateIndex(ctx context.Context, clt *elasticsearch.Client, index string, mapping string) error
- func CreateIndexByDao(ctx context.Context, clt *elasticsearch.Client, dao SearchDao) error
- func DeleteDocument(ctx context.Context, clt *elasticsearch.Client, dao SearchDao) error
- func IsIndexExist(ctx context.Context, clt *elasticsearch.Client, index string) (bool, error)
- func UpdateDucument(ctx context.Context, clt *elasticsearch.Client, dao SearchDao) error
- type IndexBuilder
- type InfoResult
- type PropFormat
- type PropType
- type Q
- type SearchDao
- type SearchResult
Constants ¶
View Source
const ( PropFormatEmpty = PropFormat("") PropFormatTime = PropFormat("epoch_second") )
View Source
const ( PropType_Keyword = PropType("keyword") PropType_Date = PropType("date") PropType_Double = PropType("double") PropType_Int = PropType("integer") )
Variables ¶
This section is empty.
Functions ¶
func AddDocument ¶
func BulkAddDocument ¶
func CreateIndex ¶
func CreateIndexByDao ¶
func DeleteDocument ¶
func IsIndexExist ¶
Types ¶
type IndexBuilder ¶
type IndexBuilder interface { AddProperty(string, PropType, PropFormat) IndexBuilder String() string }
func NewIndexBuilder ¶
func NewIndexBuilder() IndexBuilder
type InfoResult ¶
type PropFormat ¶
type PropFormat string
type SearchResult ¶
Click to show internal directories.
Click to hide internal directories.