[COMPONENT][Search] Add facility for supporting searching for note types

This commit is contained in:
2021-12-11 19:33:30 +00:00
parent d667c3a453
commit 01470ee664

View File

@@ -82,9 +82,15 @@ abstract class Parser
throw new ServerException("No one claimed responsibility for a match term: {$term}"); throw new ServerException("No one claimed responsibility for a match term: {$term}");
} }
if (!\is_null($note_res)) { if (!\is_null($note_res)) {
if (\is_array($note_res)) {
$note_res = $eb->orX(...$note_res);
}
$note_parts[] = $note_res; $note_parts[] = $note_res;
} }
if (!\is_null($actor_res)) { if (!\is_null($actor_res)) {
if (\is_array($actor_res)) {
$actor_res = $ex->orX(...$actor_res);
}
$actor_parts[] = $actor_res; $actor_parts[] = $actor_res;
} }