mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Make elasticsearch refresh opt configurable
This commit is contained in:
committed by
Dan Christian Bogos
parent
f1cdf920df
commit
8d7628410e
@@ -172,9 +172,11 @@ func (e *ElasticEE) ExportEvent(event any, key string) error {
|
||||
}
|
||||
req := e.client.Index(indexName).
|
||||
Id(key).
|
||||
Request(event).
|
||||
Refresh(refresh.True)
|
||||
Request(event)
|
||||
|
||||
if opts.Refresh != nil {
|
||||
req.Refresh(refresh.Refresh{Name: *opts.Refresh})
|
||||
}
|
||||
if opts.OpType != nil {
|
||||
req.OpType(optype.OpType{Name: *opts.OpType})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user