$interface
$interface :null|boolean|\Doctrine\DBAL\Connection
The search interface
AddDocument(integer|string $id,string $type,array $data): \FAA\Obj\Result
Add a document Add a document to search index.
| integer|string | $id | A object id |
| string | $type | The type of object |
| array | $data | The document data with key value pairs |
A system result object
Execute(array $filters,array $orders,array $payload,string $language,\FAA\Interfaces\SearchPlugin|mixed $handler): \FAA\Obj\Result
Do search Execute the search operation
| array | $filters | The search query |
| array | $orders | The search order definition |
| array | $payload | The search response definition start integer The start index length integer The count of elements to fetch fields array A list of fields to include echo int The data tables echo counter search string A search term |
| string | $language | The request language |
| \FAA\Interfaces\SearchPlugin|mixed | $handler | A search plugin instance |
A system result object with data table conform response array
IndexList(string $type,array $list,\FAA\Obj\CronJob $cron,boolean $is_full = false): \FAA\Obj\Result
Index list Handler to index a list of files
| string | $type | The system type name |
| array | $list | A list of files |
| \FAA\Obj\CronJob | $cron | A cron job instance |
| boolean | $is_full | When set to true the update will do an diff check of the attribute set |
A system result object
setupFilters(array<mixed,\FAA\Obj\Search\Filter> $filters,\Doctrine\DBAL\Query\QueryBuilder $queryBuilder,\Doctrine\DBAL\Query\QueryBuilder $queryBuilderCount)
| array<mixed,\FAA\Obj\Search\Filter> | $filters | A set of filters |
| \Doctrine\DBAL\Query\QueryBuilder | $queryBuilder | A doctrine query builder for search |
| \Doctrine\DBAL\Query\QueryBuilder | $queryBuilderCount | A doctrine query builder for count |