search

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 18 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(c zhttp.Context)

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

func DeleteByQuery(c zhttp.Context)

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

func MultipleSearch(c zhttp.Context)

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

func SearchDSL(c zhttp.Context)

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

func SearchV1(c zhttp.Context)

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.

Jump to

Keyboard shortcuts

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