Documentation ¶
Index ¶
- func IndexByName(name string) bleve.Index
- func IndexNames() []string
- func RegisterIndexName(name string, idx bleve.Index)
- func SetLog(l *log.Logger)
- func UnregisterIndexByName(name string) bleve.Index
- func UpdateAlias(alias string, add, remove []string) error
- type AliasAction
- type AliasHandler
- type CreateIndexHandler
- type DebugDocumentHandler
- type DeleteIndexHandler
- type DocCountHandler
- type DocDeleteHandler
- type DocGetHandler
- type DocIndexHandler
- type GetIndexHandler
- type ListFieldsHandler
- type ListIndexesHandler
- type SearchHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IndexByName ¶
func IndexByName(name string) bleve.Index
func IndexNames ¶
func IndexNames() []string
func RegisterIndexName ¶
func RegisterIndexName(name string, idx bleve.Index)
func SetLog ¶
SetLog sets the logger used for logging by default log messages are sent to ioutil.Discard
func UnregisterIndexByName ¶
func UnregisterIndexByName(name string) bleve.Index
func UpdateAlias ¶
Types ¶
type AliasAction ¶
type AliasHandler ¶
type AliasHandler struct{}
func NewAliasHandler ¶
func NewAliasHandler() *AliasHandler
func (*AliasHandler) ServeHTTP ¶
func (h *AliasHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type CreateIndexHandler ¶
type CreateIndexHandler struct { IndexNameLookup varLookupFunc // contains filtered or unexported fields }
func NewCreateIndexHandler ¶
func NewCreateIndexHandler(basePath string) *CreateIndexHandler
func (*CreateIndexHandler) ServeHTTP ¶
func (h *CreateIndexHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type DebugDocumentHandler ¶
type DebugDocumentHandler struct { IndexNameLookup varLookupFunc DocIDLookup varLookupFunc // contains filtered or unexported fields }
DebugDocumentHandler allows you to debug the index content for a given document id.
func NewDebugDocumentHandler ¶
func NewDebugDocumentHandler(defaultIndexName string) *DebugDocumentHandler
func (*DebugDocumentHandler) ServeHTTP ¶
func (h *DebugDocumentHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type DeleteIndexHandler ¶
type DeleteIndexHandler struct { IndexNameLookup varLookupFunc // contains filtered or unexported fields }
func NewDeleteIndexHandler ¶
func NewDeleteIndexHandler(basePath string) *DeleteIndexHandler
func (*DeleteIndexHandler) ServeHTTP ¶
func (h *DeleteIndexHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type DocCountHandler ¶
type DocCountHandler struct { IndexNameLookup varLookupFunc // contains filtered or unexported fields }
func NewDocCountHandler ¶
func NewDocCountHandler(defaultIndexName string) *DocCountHandler
func (*DocCountHandler) ServeHTTP ¶
func (h *DocCountHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type DocDeleteHandler ¶
type DocDeleteHandler struct { IndexNameLookup varLookupFunc DocIDLookup varLookupFunc // contains filtered or unexported fields }
func NewDocDeleteHandler ¶
func NewDocDeleteHandler(defaultIndexName string) *DocDeleteHandler
func (*DocDeleteHandler) ServeHTTP ¶
func (h *DocDeleteHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type DocGetHandler ¶
type DocGetHandler struct { IndexNameLookup varLookupFunc DocIDLookup varLookupFunc // contains filtered or unexported fields }
func NewDocGetHandler ¶
func NewDocGetHandler(defaultIndexName string) *DocGetHandler
func (*DocGetHandler) ServeHTTP ¶
func (h *DocGetHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type DocIndexHandler ¶
type DocIndexHandler struct { IndexNameLookup varLookupFunc DocIDLookup varLookupFunc // contains filtered or unexported fields }
func NewDocIndexHandler ¶
func NewDocIndexHandler(defaultIndexName string) *DocIndexHandler
func (*DocIndexHandler) ServeHTTP ¶
func (h *DocIndexHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type GetIndexHandler ¶
type GetIndexHandler struct {
IndexNameLookup varLookupFunc
}
func NewGetIndexHandler ¶
func NewGetIndexHandler() *GetIndexHandler
func (*GetIndexHandler) ServeHTTP ¶
func (h *GetIndexHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type ListFieldsHandler ¶
type ListFieldsHandler struct { IndexNameLookup varLookupFunc // contains filtered or unexported fields }
func NewListFieldsHandler ¶
func NewListFieldsHandler(defaultIndexName string) *ListFieldsHandler
func (*ListFieldsHandler) ServeHTTP ¶
func (h *ListFieldsHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type ListIndexesHandler ¶
type ListIndexesHandler struct { }
func NewListIndexesHandler ¶
func NewListIndexesHandler() *ListIndexesHandler
func (*ListIndexesHandler) ServeHTTP ¶
func (h *ListIndexesHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type SearchHandler ¶
type SearchHandler struct { IndexNameLookup varLookupFunc // contains filtered or unexported fields }
SearchHandler can handle search requests sent over HTTP
func NewSearchHandler ¶
func NewSearchHandler(defaultIndexName string) *SearchHandler
func (*SearchHandler) ServeHTTP ¶
func (h *SearchHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.