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

package http

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

Index

Package Files

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, index bleve.Index)

func UnregisterIndexByName Uses

func UnregisterIndexByName(name string) bleve.Index

type CreateIndexHandler Uses

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

func NewCreateIndexHander Uses

func NewCreateIndexHander(basePath string) *CreateIndexHandler

func (*CreateIndexHandler) ServeHTTP Uses

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

type DebugDocumentHandler Uses

type DebugDocumentHandler struct {
    // contains filtered or unexported fields
}

DebugDocumentHandler allows you to debug the index content for a given document id. the document ID should be mapped to the mux router URL with name "docId"

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 {
    // 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 {
    // 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 {
    // 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 {
    // 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 {
    // 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{}

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 {
    // 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 NewListIndexesHander Uses

func NewListIndexesHander() *ListIndexesHandler

func (*ListIndexesHandler) ServeHTTP Uses

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

type SearchHandler Uses

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

SearchHandler can handle search requests sent over HTTP the index name can be selected in the URL by mapping a gorilla mux var, or it can be set manually with by setting the defaultIndex value

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 13 packages (graph). Updated 2016-07-19. Refresh now. Tools for package owners. This is a dead-end fork (no commits since the fork).