Documentation » Admin Search

4. Filter field definition »

« 2. Configuration

3. Customizing the query used to generate the list

You can customize the list query thanks to the createQuery method.


public function createQuery($context = 'list')
    $query = parent::createQuery($context);

    $queryparam = new \Elastica\Query\Match();
    $queryparam->setFieldQuery('my_param', 'my_value');

    return $query;

Found a typo? Something is wrong in this documentation? Just fork and edit it!