Location: PHPKode > scripts > Fantastic ElasticSearch > wordpress-fantastic-elasticsearch-1.1.2/lib/Elastica/Filter/Exists.php
<?php
/**
 * Exists query
 *
 * @uses Elastica_Query_Abstract
 * @category Xodoa
 * @package Elastica
 * @author Oleg Cherniy <hide@address.com>
 * @link http://www.elasticsearch.org/guide/reference/query-dsl/exists-filter.html
 */
class Elastica_Filter_Exists extends Elastica_Filter_Abstract
{
    /**
     * Construct exists filter
     *
     * @param string $field
     */
    public function __construct($field)
    {
        $this->setField($field);
    }

    /**
     * Set field
     *
     * @param  string                 $field
     * @return Elastica_Filter_Exists
     */
    public function setField($field)
    {
        return $this->setParam('field', $field);
    }
}
Return current item: Fantastic ElasticSearch