The (slightly verbose) title already says it: we have a mechanism for not showing specific processors to the user if the backend "discourages" them, to avoid frequent config mistakes from D7 where Solr is used with Tokenizer or other unnecessary processors.

However, the way it's currently implemented, if you already enabled the processor before moving the index to the server (or before the backend implemented the method or returned that processor's ID) you'll be left without any option to actually disable the processor which you should disable.
So, we shouldn't remove those discouraged processors that are currently enabled but instead notify the user that they should disable them (e.g., via a "warning" message, or with an added note in the processor description).

Comments

drunken monkey created an issue. See original summary.

drunken monkey’s picture

Issue tags: +Novice

The relevant code is in \Drupal\search_api\Form\IndexProcessorsForm::form() – I think this is simple enough to count as a "novice" issue.

ashishdalvi’s picture

Assigned: Unassigned » ashishdalvi
anicky’s picture

Assigned: ashishdalvi » anicky
Issue tags: +DevDaysMilan
anicky’s picture

Status: Active » Needs review
StatusFileSize
new2.22 KB

I added a message in the description of discouraged processors, in bold and on a new line.
If the user unchecks the processor in the list, it disappears then.

Status: Needs review » Needs work

The last submitted patch, 5: discouraged_processors-2718575-5.patch, failed testing.

The last submitted patch, 5: discouraged_processors-2718575-5.patch, failed testing.

anicky’s picture

Status: Needs work » Needs review
StatusFileSize
new2.04 KB

Status: Needs review » Needs work

The last submitted patch, 8: discouraged_processors-2718575-8.patch, failed testing.

The last submitted patch, 8: discouraged_processors-2718575-8.patch, failed testing.

anicky’s picture

Status: Needs work » Needs review
StatusFileSize
new2.08 KB
drunken monkey’s picture

StatusFileSize
new1.11 KB
new2.12 KB

Thanks, nice work!
Just a few small changes in the attached patch, otherwise it looks pretty good.
If these changes look good to you, too, I can commit this.

borisson_’s picture

Status: Needs review » Reviewed & tested by the community
anicky’s picture

Assigned: anicky » Unassigned

It's ok for me too! Thank you.

  • drunken monkey committed 4edffc8 on 8.x-1.x authored by Anicky
    Issue #2718575 by Anicky, drunken monkey: Fixed handling of enabled...
drunken monkey’s picture

Status: Reviewed & tested by the community » Fixed

OK, good to hear!
Committed.
Thanks again!

Status: Fixed » Closed (fixed)

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