nl_tokens: / * Create saves a record to elasticsearch under the provided id . If the record already exists it will not be inserted .
pl_tokens: function create ( record , indexArg = indexName ) { logger . trace ( 'creating record' , logRecord ? record : null ) ; const query = { index : indexArg , type : recordType , id : record [ idField ] , body : <mask> , refresh : forceRefresh } ; return elasticsearch . create ( query ) ; }