Documentation
¶
Index ¶
- func IndexByName(name string) bleve.Index
- func IndexNames() []string
- func RegisterIndexName(name string, idx bleve.Index)
- func UnregisterIndexByName(name string) bleve.Index
- type DocCountResult
- type IndexDetails
- type IndexService
- func (i *IndexService) CreateIndex(path string, indexName string) (bleve.Index, error)
- func (i *IndexService) DeleteIndex(path string, indexName string) (OperationResult, error)
- func (i *IndexService) InitIndex(dataDir string)
- func (i *IndexService) ListIndexes() Indexes
- func (i *IndexService) ShowIndex(indexName string) (interface{}, error)
- type IndexStats
- type Indexes
- type OperationResult
- func DeleteDoc(indexName string, docId string) (*OperationResult, error)
- func Search(indexName string, jsonSearchQuery []byte) (*OperationResult, error)
- func ShowDoc(indexName string, docId string) (OperationResult, error)
- func UpsertDoc(indexName string, docId string, docData []byte) (OperationResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IndexByName ¶
func IndexNames ¶
func IndexNames() []string
func RegisterIndexName ¶
func UnregisterIndexByName ¶
Types ¶
type DocCountResult ¶
func DocCount ¶
func DocCount(indexName string) (DocCountResult, error)
type IndexDetails ¶
type IndexDetails struct {
Success bool `json:"success"`
Status string `json:"status"`
Name string `json:"name"`
Mapping mapping.IndexMapping `json:"mapping"`
}
type IndexService ¶
type IndexService struct {
}
func NewIndexService ¶
func NewIndexService() *IndexService
func (*IndexService) CreateIndex ¶
func (*IndexService) DeleteIndex ¶
func (i *IndexService) DeleteIndex(path string, indexName string) (OperationResult, error)
func (*IndexService) InitIndex ¶
func (i *IndexService) InitIndex(dataDir string)
func (*IndexService) ListIndexes ¶
func (i *IndexService) ListIndexes() Indexes
func (*IndexService) ShowIndex ¶
func (i *IndexService) ShowIndex(indexName string) (interface{}, error)
type IndexStats ¶
type OperationResult ¶
Click to show internal directories.
Click to hide internal directories.