Version

master

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.

<?php

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

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

    return $query;
}

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