Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Count ¶
Count returns the number of documents matching a query
@Id Count @Summary Count documents for compatible ES @security BasicAuth @Tags Search @Accept json @Produce json @Param index path string true "Index" @Param query body meta.ZedQueryForSDK false "Query" @Success 200 {object} elastic.CountResponse @Failure 400 {object} meta.HTTPResponseError @Router /es/{index}/_count [post]
func DeleteByQuery ¶
DeleteByQuery searches the index and deletes all matches
@Id DeleteByQuery @Summary Searches the index and deletes all matched documents @security BasicAuth @Tags Search @Accept json @Produce json @Param index path string true "Index" @Param query body meta.ZedQueryForSDK true "Query" @Success 200 {object} meta.HTTPResponseDeleteByQuery @Failure 400 {object} meta.HTTPResponseError @Router /es/{index}/_delete_by_query [post]
func MultipleSearch ¶
MultipleSearch like bulk searches
@Id MSearch @Summary Search V2 MultipleSearch for compatible ES @security BasicAuth @Tags Search @Accept plain @Produce json @Param query body string true "Query" @Success 200 {object} meta.SearchResponse @Failure 400 {object} meta.HTTPResponseError @Router /es/_msearch [post]
func SearchDSL ¶
SearchDSL searches the index for the given http request from end user
@Id Search @Summary Search V2 DSL for compatible ES @security BasicAuth @Tags Search @Accept json @Produce json @Param index path string true "Index" @Param query body meta.ZedQueryForSDK true "Query" @Success 200 {object} meta.SearchResponse @Failure 400 {object} meta.HTTPResponseError @Router /es/{index}/_search [post]
func SearchV1 ¶
SearchV1 searches the index for the given http request from end user
@Id SearchV1 @Summary Search V1 @security BasicAuth @Tags Search @Accept json @Produce json @Param index path string true "Index" @Param query body v1.ZedQueryForSDK true "Query" @Success 200 {object} meta.SearchResponse @Failure 400 {object} meta.HTTPResponseError @Router /api/{index}/_search [post]
Types ¶
This section is empty.