Documentation ¶
Index ¶
- Variables
- func Create(cr *proto.CreateRequest) error
- func CreateIndexWithSettings(r *proto.CreateIndexWithSettingsRequest) error
- func Delete(dr *proto.DeleteRequest) error
- func Init()
- func PutMappingFromJSON(r *proto.PutMappingFromJSONRequest) error
- func Query(sr *proto.QueryRequest) (string, error)
- func Read(rr *proto.ReadRequest) (string, error)
- func Search(sr *proto.SearchRequest) (string, error)
- func Update(ur *proto.UpdateRequest) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound error ErrNotFound = errors.New("not found") // Hosts elasticsearch Hosts []string )
Functions ¶
func CreateIndexWithSettings ¶
func CreateIndexWithSettings(r *proto.CreateIndexWithSettingsRequest) error
CreateIndexWithSettings creates an ES index with settings
func PutMappingFromJSON ¶
func PutMappingFromJSON(r *proto.PutMappingFromJSONRequest) error
PutMappingFromJSON puts a mapping into ES
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.