Making a search block as per https://www.drupal.org/docs/7/modules/search-api/getting-started/search-...
I get an error in the Filter Criteria. It says:
Based on the parse mode set, some of these options might not work as expected. Please either use "Multiple terms" as the parse mode or make sure that the filter behaves as expected for multiple words.
and this is printed in the displayed black. But there is no option to use "Multiple terms" as the parse mode. I have it set to "Multiple words."
See https://db.tt/rxthJ4nWwX
How do I solve this?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tjtj created an issue. See original summary.

drunken monkey’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
1006 bytes

I get an error in the Filter Criteria. It says:

It's not an error (it would be in red and (usually) at the top of the form in that case), it's just a description. But it is ambiguously phrased, I guess, now that I look at it again. Also, as you note, we got the name of the parse mode wrong, it's supposed to be "Multiple words".

The attached patch changes the description to this:

Depending on the parse mode set, some of these options might not work as expected. Please either use "Multiple words" as the parse mode or make sure that the filter behaves as expected for multiple words.

Would you agree that that makes it clearer?

tjtj’s picture

That is clearer, but I did use "Multiple words", and the text remains in thew View setup, and still appears on my pages. It just confuses my users.

drunken monkey’s picture

Ah, so you expose the operator, too, and the description is also displayed in the exposed form?
That's of course a bad idea, yes, and shouldn't be the case. The attached revision of the patch should fix that, too, and only show the description in the admin UI.

drunken monkey’s picture

Oops, wrong parent method.
Anyways, could you please test the patch and verify that it solves your problem?

borisson_’s picture

Looks good to me, waiting for @tjtj to rtbc this.

  • drunken monkey committed e05ffb4 on 8.x-1.x
    Issue #2876398 by drunken monkey: Fixed operator description of Views "...
drunken monkey’s picture

Status: Needs review » Fixed

Tired of waiting, and pretty sure this does what it should.
Committed.
Thanks for reviewing, Joris!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.