index()
index(array $documents)
Adds a document to the index.
Parameters
array | $documents | A list of midcom_services_indexer_document objects. |
query(string $query, \midcom_services_indexer_filter $filter = null, array $options = array()) : array<mixed,\midcom_services_indexer_document>
Query the index and, if set, restrict the query by a given filter.
string | $query | The query, which must suite the backends query syntax. |
\midcom_services_indexer_filter | $filter | An optional filter used to restrict the query. This may be null indicating no filter. |
array | $options | Options to modify the backend behavior |
An array of documents matching the query