• Spencer Rinehart's avatar
    Add wildcard behavior for null endpoints in rangeQuery. · e7481912
    Spencer Rinehart authored
    I believe the '*' range feature is a pretty common usecase of range
    queries.  Right now, passing null to this function generates an invalid
    SOLR phrase like 'field:[5 TO ]'.  Users can of course pass '*' to the
    helper, but supporting null makes this common usecase easier to handle.
    
    For example,
    
    ```php
    $minValue = $request->get('min'); // returns null if min not specified
    $maxValue = $request->get('max'); // returns null if max not specified
    $range = $helper->rangeQuery('value', $minValue, $maxValue);
    ```
    e7481912
Name
Last commit
Last update
examples Loading commit data...
library/Solarium Loading commit data...
phar Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
README.md Loading commit data...
build.xml Loading commit data...
composer.json Loading commit data...
phpunit.xml.dist Loading commit data...
phpunit.xml.travis Loading commit data...