Location: PHPKode > scripts > Fantastic ElasticSearch > wordpress-fantastic-elasticsearch-1.1.2/lib/Elastica/Query/Range.php
<?php
/**
 * Range query
 *
 * @uses Elastica_Query_Abstract
 * @category Xodoa
 * @package Elastica
 * @author Nicolas Ruflin <hide@address.com>
 * @link http://www.elasticsearch.org/guide/reference/query-dsl/range-query.html
 */
class Elastica_Query_Range extends Elastica_Query_Abstract
{
    /**
     * Adds a range field to the query
     *
     * @param  string               $fieldName Field name
     * @param  array                $args      Field arguments
     * @return Elastica_Query_Range Current object
     */
    public function addField($fieldName, array $args)
    {
        return $this->setParam($fieldName, $args);

    }
}
Return current item: Fantastic ElasticSearch