[Add] Create index
This commit is contained in:
parent
30bead253d
commit
4e39cd3861
|
@ -16,6 +16,8 @@ const (
|
|||
SubjectRequestKeywordUpsert = "selly.request.keyword.upsert"
|
||||
SubjectPullKeywordUpsert = "selly.pull.keyword.upsert"
|
||||
SubjectRequestKeywordSearch = "selly.request.keyword.search"
|
||||
|
||||
SubjectRequestCreateIndex = "selly.request.es.create_index"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -43,3 +43,8 @@ func (Request) KeywordSearch(query ESQuery) (*Response, error) {
|
|||
func (Request) KeywordUpsert(payload Payload) (*Response, error) {
|
||||
return requestNats(SubjectRequestKeywordUpsert, toBytes(payload))
|
||||
}
|
||||
|
||||
// CreateIndex ...
|
||||
func (Request) CreateIndex(payload Payload) (*Response, error) {
|
||||
return requestNats(SubjectRequestCreateIndex, toBytes(payload))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue