Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
borisson_Comment #3
rosinegrean CreditAttribution: rosinegrean at PitechPlus commentedComment #4
rosinegrean CreditAttribution: rosinegrean at PitechPlus commentedThis 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
Comment #5
drunken monkeyLet'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).Comment #6
bdlangton CreditAttribution: bdlangton commentedI 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)
.