buildSearchObject example

class ProductSearcher extends GenericSearcher
{
    private const COLUMN = 'number';

    protected function getIdentifierColumn()
    {
        return self::COLUMN;
    }

    protected function buildSearchObject(SearchCriteria $criteria)
    {
        return parent::buildSearchObject($criteria);
    }
}


    /** * @return SearcherResult */
    public function search(SearchCriteria $criteria)
    {
        if (!$this->enabled) {
            return $this->decorated->search($criteria);
        }

        $search = $this->buildSearchObject($criteria);

        $result = $this->fetch($search);

        return $this->iterate($result);
    }

    /** * @return EsSearch */
    protected function buildSearchObject(SearchCriteria $criteria)
    {
        
Home | Imprint | This part of the site doesn't use cookies.