Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // create a query with a custom start, rows, fields and sort setting
- $query = new Solarium_Query_Select;
- // you can add a filterquery based on a config array
- $query->addFilterQuery(array(
- 'key' => 'fq1',
- 'tag' => array('populationLimit'),
- 'query' => 'population:[1 TO 1000000]',
- ));
- // or create a filterquery instance yourself, using its API
- $filterQuery = new Solarium_Query_Select_FilterQuery;
- $filterQuery->setKey('fq1')
- ->addTag('populationLimit')
- ->setQuery('population:[1 TO 1000000]');
- $query->addFilterQuery($filterQuery);
Add Comment
Please, Sign In to add comment