item_search_service
class item_search_service implements item_search_service_interface
| internal |
Application-level facade for the Item Search Engine.
This service orchestrates the construction and execution of search queries. It acts as the boundary between the Controller/API and the complex SQL/SearchEngine.
Methods
Perform an advanced item search using criteria, metadata, pagination, and sorting.
Perform an advanced search returning stdClass records.
Retrieve the first matching item.
Details
at line 73
result_interface
search(search_criteria $criteria, search_metadata_criteria $meta, pagination|null $pagination = null, sorting|null $sorting = null, string|null $domain_class = null)
Perform an advanced item search using criteria, metadata, pagination, and sorting.
The result will, by default, be hydrated into domain objects when a domain class with a TYPE constant is provided.
at line 109
result_interface
search_raw(search_criteria $criteria, search_metadata_criteria $meta, pagination|null $pagination = null, sorting|null $sorting = null)
Perform an advanced search returning stdClass records.
at line 134
mixed
first(search_criteria $criteria, search_metadata_criteria $meta, string|null $domain_class = null)
Retrieve the first matching item.