Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
logica0419 committed Dec 4, 2023
1 parent 31d307c commit b7c7db3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion service/search/es.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ func (e *esEngine) Do(q *Query) (Result, error) {
}

func (e *esEngine) Available() bool {
//このクライアントにはライフサイクルが無いので、常にtrueを返す。
// このクライアントにはライフサイクルが無いので、常にtrueを返す。
return true
}

Expand Down
2 changes: 2 additions & 0 deletions service/search/es_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,12 @@ func (e *esEngine) sync() error {
}
} else {
doc := e.convertMessageUpdated(v, message.Parse(v.Text))

data, err := json.Marshal(map[string]any{"doc": *doc})
if err != nil {
return err
}

err = bulkIndexer.Add(context.Background(), esutil.BulkIndexerItem{
Action: "update",
DocumentID: v.ID.String(),
Expand Down

0 comments on commit b7c7db3

Please sign in to comment.