src/Sherlock/components/facets/Terms.php
public function fields($queries)
    {

        $args = func_get_args();

        //single param, array of fields
        if (count($args) == 1 && is_array($args[0])) {
            $args = $args[0];
        }

        foreach ($args as $arg) {
            if (is_string($arg)) {
                $this->params['fields'][] = $arg;
            }
        }

        return $this;
    }
public function fields($queries)
    {

        $args = func_get_args();

        //single param, array of fields
        if (count($args) == 1 && is_array($args[0])) {
            $args = $args[0];
        }

        foreach ($args as $arg) {
            if (is_string($arg)) {
                $this->params['fields'][] = $arg;
            }
        }

        return $this;
    }
@param $queries

@return $this