Añade un filtro que ignora los textos vacios

@return $this
558648
public function ignoreEmpty()
    {
        $this->filter(function ($value) {
            return !Text::make($value)->isEmpty();
        }, Type::STRINGIFABLE);

        return $this;
    }
459155
public function clear()
    {

        $this->getMailer();

        $this->message = Swift_Message::newInstance();
        $this->message->setCharset($this->charset);

        return $this;
    }
930835
public function possessive()
        {
            $string = $this->get();
            $value = $string."'".(
                's' !== substr($string, -1)
                    ? 's'
                    : null
                );
            $this->update($value);
            return $this;
        }
707826
public function reset()
    {
        $this->filters = array();
        $this->limit = null;
        $this->order = null;
        $this->page = null;

        return $this;
    }
1255921
public function toUpperCase() {
    $token = $this->getConstantName()->lastToken();
    $token->setText(strtoupper($token->getText()));
    return $this;
  }
313921
private function doTransitionFromG() : self
    {
        if ($this->getToken() === Grammar::T_N) {
            $this
                ->setState(self::STATE_Y)
                ->addPosition(1);
            return $this;
        }

        if ($this->getToken() === Grammar::T_M) {
            $this
                ->setState(self::STATE_G)
                ->addPosition(1)
                ->addTokenValue(Grammar::T_M);
            return $this;
        }

        $this->setState(self::STATE_F);
        return $this;
    }
849490
public function toLowerCase() {
    $token = $this->getConstantName()->lastToken();
    $token->setText(strtolower($token->getText()));
    return $this;
  }
577338
public function text( $text )
	{
		if( !empty( $text ) )
		{
			$langid = $this->getContext()->getLocale()->getLanguageId();
			$func = $this->filter->createFunction( 'index.text:relevance', [$langid, $text] );

			$this->conditions[] = $this->filter->compare( '>', $func, 0 );
		}

		return $this;
	}
1133276
public function envResume()
    {
        $this->executeCommandHook(__FUNCTION__, 'before');
        $this->engineInstance()->start();
        $this->executeCommandHook(__FUNCTION__, 'after');

        return $this;
    }
711215
protected function addFilters()
    {
        $search = static::$versionTransformer->getSearchValue();
        if ($search != '') {
            $this->addAllFilter($search);
        }
        $this->addColumnFilters();
        return $this;
    }
360543
public function setFilters($filters = [])
    {
        foreach ($filters as $key => $value) {
            $this->addFilter($key, $value);
        }

        return $this;
    }
801169
public function convertExpressionsToStrings()
    {
        $this->setMainQuery((string) $this->getMainQuery());

        $this->setFilterQueries(array_map(
            function($expr) { return (string) $expr; },
            $this->getFilterQueries()
        ));

        return $this;
    }
559592
public function initManyToManyRelations()
    {
        if ($this->isManyToMany()) {
            $fk1 = $this->foreignKeys[0];
            $fk2 = $this->foreignKeys[1];
            $this->injectManyToMany($fk1, $fk2);
            $this->injectManyToMany($fk2, $fk1);
        }

        return $this;
    }
423977
protected function addTypoScriptFilters()
    {
        if (!empty($this->settings['additionalFilters'])) {
            foreach ($this->settings['additionalFilters'] as $key => $filterQuery) {
                $this->query->createFilterQuery('additionalFilter-'.$key)
                    ->setQuery($filterQuery);
            }
        }

        return $this;
    }
799561
public function clear()
    {
        $this->_filters = array(
            'format' => 'json'
        );
        // указываем явно значения по-умолчанию
        $this
            ->setLang(self::LANG_RU)
            ->setOffset(0)
            ->setLimit(10);
//            ->useAreaLimit(false);
        $this->_response = null;
        return $this;
    }
1068097
public function set($columnFilters)
    {
        if (! is_array($columnFilters)) {
            $columnFilters = func_get_args();
        }

        $this->columnFilters = [];

        foreach ($columnFilters as $filter) {
            $this->push($filter);
        }

        return $this;
    }
1170233
final public function addTopics(TopicFilter ...$topics): self
    {
        foreach ($topics as $topic) {
            // Frequently used: topicName, make it an apart variable for easy access
            $topicName = $topic->getTopicFilter();
            if (\in_array($topicName, $this->topicHashTable, true) === false) {
                // Personally, I find this hacky as hell. However, using the SPL library there seems to be no other way
                $this->topicHashTable[] = $topicName;
                $this->topics->enqueue($topic);
            }
        }

        return $this;
    }