You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to have fields accessor in OpenSearchServer\Document\Document.
We need this to inspect document content while processing exceptions (and to save document unique field for future processing, for example)
No way to access the "fields" protected property for now.
Regards
The text was updated successfully, but these errors were encountered:
public function getField($fieldName) {
if(empty($fieldName)) {
throw new \InvalidArgumentException('Please provide a fieldname');
}
$values = array();
array_map( function ($f) use (&$values, $fieldName) {
if ( $f['name']===$fieldName) {
array_push($values, $f["value"]);
}
}, $this->fields);
return $values;
}
It would be great to have fields accessor in OpenSearchServer\Document\Document.
We need this to inspect document content while processing exceptions (and to save document unique field for future processing, for example)
No way to access the "fields" protected property for now.
Regards
The text was updated successfully, but these errors were encountered: