The following interfaces represent the entry point for search:
Siso\Bundle\SearchBundle\Api\EshopQuery is the value object class for all search query parameters.
The current controller implementation for the eshop search uses a service call to instantiate the
It has the service ID:
To change the default implementation, override this service.
The search context defines context information for the query which is not contained in the search clauses. This can be, for example, data related to the SiteAccess (which was addressed by the HTTP request). This information can be used by the respective search service implementation.
The conditions API offers the following Conditions:
ContentTypesCondition- filters results by Content Type. Valid Content Types are, for example,
SearchTermCondition- filters results by phrase, potentially in a specific field. For example: search for
1 2 3 4
SectionCondition- filters results by Section ID. Returns only elements that belong to the given Section.
SubtreeCondition- filters results by setting a path. Only elements under this path are fetched.
VisibilityCondition- filters results that are shown or hidden.
FieldBoosting- defines which fields should be boosted in search result. They have higher priority in search.
RelevanceSorting- sorts the results by relevance, which is internal Solr implementation for the
ProductFieldSorting- sorting for products. Supports sorting by name, SKU or price in a given direction.
ContentNameSorting- sorts the results by content Field name in a given direction.