bleve: github.com/blevesearch/bleve/http Index | Files

package http

import "github.com/blevesearch/bleve/http"

Index

Package Files

alias.go debug.go doc_count.go doc_delete.go doc_get.go doc_index.go fields.go index_create.go index_delete.go index_get.go index_list.go registry.go search.go util.go

func IndexByName Uses

func IndexByName(name string) bleve.Index

func IndexNames Uses

func IndexNames() []string

func RegisterIndexName Uses

func RegisterIndexName(name string, idx bleve.Index)

func SetLog Uses

func SetLog(l *log.Logger)

SetLog sets the logger used for logging by default log messages are sent to ioutil.Discard

func UnregisterIndexByName Uses

func UnregisterIndexByName(name string) bleve.Index

func UpdateAlias Uses

func UpdateAlias(alias string, add, remove []string) error

type AliasAction Uses

type AliasAction struct {
    Alias         string   `json:"alias"`
    AddIndexes    []string `json:"add"`
    RemoveIndexes []string `json:"remove"`
}

type AliasHandler Uses

type AliasHandler struct{}

func NewAliasHandler Uses

func NewAliasHandler() *AliasHandler

func (*AliasHandler) ServeHTTP Uses

func (h *AliasHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type CreateIndexHandler Uses

type CreateIndexHandler struct {
    IndexNameLookup varLookupFunc
    // contains filtered or unexported fields
}

func NewCreateIndexHandler Uses

func NewCreateIndexHandler(basePath string) *CreateIndexHandler

func (*CreateIndexHandler) ServeHTTP Uses

func (h *CreateIndexHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type DebugDocumentHandler Uses

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 Uses

func NewDebugDocumentHandler(defaultIndexName string) *DebugDocumentHandler

func (*DebugDocumentHandler) ServeHTTP Uses

func (h *DebugDocumentHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type DeleteIndexHandler Uses

type DeleteIndexHandler struct {
    IndexNameLookup varLookupFunc
    // contains filtered or unexported fields
}

func NewDeleteIndexHandler Uses

func NewDeleteIndexHandler(basePath string) *DeleteIndexHandler

func (*DeleteIndexHandler) ServeHTTP Uses

func (h *DeleteIndexHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type DocCountHandler Uses

type DocCountHandler struct {
    IndexNameLookup varLookupFunc
    // contains filtered or unexported fields
}

func NewDocCountHandler Uses

func NewDocCountHandler(defaultIndexName string) *DocCountHandler

func (*DocCountHandler) ServeHTTP Uses

func (h *DocCountHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type DocDeleteHandler Uses

type DocDeleteHandler struct {
    IndexNameLookup varLookupFunc
    DocIDLookup     varLookupFunc
    // contains filtered or unexported fields
}

func NewDocDeleteHandler Uses

func NewDocDeleteHandler(defaultIndexName string) *DocDeleteHandler

func (*DocDeleteHandler) ServeHTTP Uses

func (h *DocDeleteHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type DocGetHandler Uses

type DocGetHandler struct {
    IndexNameLookup varLookupFunc
    DocIDLookup     varLookupFunc
    // contains filtered or unexported fields
}

func NewDocGetHandler Uses

func NewDocGetHandler(defaultIndexName string) *DocGetHandler

func (*DocGetHandler) ServeHTTP Uses

func (h *DocGetHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type DocIndexHandler Uses

type DocIndexHandler struct {
    IndexNameLookup varLookupFunc
    DocIDLookup     varLookupFunc
    // contains filtered or unexported fields
}

func NewDocIndexHandler Uses

func NewDocIndexHandler(defaultIndexName string) *DocIndexHandler

func (*DocIndexHandler) ServeHTTP Uses

func (h *DocIndexHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type GetIndexHandler Uses

type GetIndexHandler struct {
    IndexNameLookup varLookupFunc
}

func NewGetIndexHandler Uses

func NewGetIndexHandler() *GetIndexHandler

func (*GetIndexHandler) ServeHTTP Uses

func (h *GetIndexHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type ListFieldsHandler Uses

type ListFieldsHandler struct {
    IndexNameLookup varLookupFunc
    // contains filtered or unexported fields
}

func NewListFieldsHandler Uses

func NewListFieldsHandler(defaultIndexName string) *ListFieldsHandler

func (*ListFieldsHandler) ServeHTTP Uses

func (h *ListFieldsHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type ListIndexesHandler Uses

type ListIndexesHandler struct {
}

func NewListIndexesHandler Uses

func NewListIndexesHandler() *ListIndexesHandler

func (*ListIndexesHandler) ServeHTTP Uses

func (h *ListIndexesHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type SearchHandler Uses

type SearchHandler struct {
    IndexNameLookup varLookupFunc
    // contains filtered or unexported fields
}

SearchHandler can handle search requests sent over HTTP

func NewSearchHandler Uses

func NewSearchHandler(defaultIndexName string) *SearchHandler

func (*SearchHandler) ServeHTTP Uses

func (h *SearchHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

Package http imports 14 packages (graph) and is imported by 20 packages. Updated 2018-01-06. Refresh now. Tools for package owners.