When I add an exposed fulltext search filter, I see this in the admin summary:

Search: Fulltext search (and )

The '(and )' doesn't look quite right.

Comments

joachim created an issue. See original summary.

borisson_’s picture

Issue tags: +Novice
rosinegrean’s picture

Assigned: Unassigned » rosinegrean
rosinegrean’s picture

Assigned: rosinegrean » Unassigned

This is not a search api issue.
It comes from FilterPluginBase::admin_summary
$this->operator . ' ' . $this->value;

when $this->value is empty.

I've created an issue in core Display issue in FilterPluginBase::admin_summary for this.

@drunken_monkey, you can mark it with the appropriate status.
Thanks

drunken monkey’s picture

Let's wait whether the Core issue will be resolved.
Basically, for exposed filters, we just want to say "exposed" there.

However, I guess for not-exposed fulltext search filters (rare as that may be) we want a custom implementation anyways – something like adding the operator between the individual words/tokens being searched. So maybe we should add an override of adminSummary() in any case, and therefore don't need the Core issue (though I'd say it still makes sense in general).

bdlangton’s picture

I reviewed the core issue, but we'll see if it gets merged. However, there is one further issue relating to search API in particular. If you do a filter on a fulltext field and you choose multiple words to filter on, then the display will be: Search: Fulltext search (or word1 word2).