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.
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?
Comment | File | Size | Author |
---|---|---|---|
#5 | 2876398-5--views_fulltext_operator_description.patch | 1.22 KB | drunken monkey |
|
Comments
Comment #2
drunken monkeyIt'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:
Would you agree that that makes it clearer?
Comment #3
tjtj CreditAttribution: tjtj commentedThat 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.
Comment #4
drunken monkeyAh, 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.
Comment #5
drunken monkeyOops, wrong parent method.
Anyways, could you please test the patch and verify that it solves your problem?
Comment #6
borisson_Looks good to me, waiting for @tjtj to rtbc this.
Comment #8
drunken monkeyTired of waiting, and pretty sure this does what it should.
Committed.
Thanks for reviewing, Joris!