Closed (fixed)
Project:
Search API
Version:
8.x-1.x-dev
Component:
Plugins
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2019 at 15:33 UTC
Updated:
30 Dec 2022 at 12:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
hanoiiAttached is a simple patch to fix this.
Comment #3
drunken monkeyGreat catch, thanks a lot!
A bit weird that no-one noticed this before … Either the processor is hugely unpopular or there’s a lot of broken sites now out there. Neither of those sound nice.
Anyways, the patch looks great, but needs tests. Added in the attached revision, please review!
Comment #5
vinlaurens commentedTested this and works good on my instance. Steps I took:
Before patch:
- Drupal 8.6.10 with search_api enabled.
- Went to /admin/config/search/search-api/index/default_index/processors and enabled "Type-specific boosting".
- In tab "Type specific boosting" set "Boost for the Article bundle" and "Boost for the Basic page bundle" to "Use datasource default".
- Save the values.
- "Boost for the Article bundle" and and "Boost for the Basic page bundle" show 0.0 as value.
After patching:
- Refresh the page, see "Use datasource default" as default value in the field instead of 0.0.
- Save one of the bundles with 0.0 as value in the dropdown, the other bundle still has "Use datasource default" as default value.
- Value 0.0 persisted while other bundle shows the default "Use datasource default".
Comment #7
drunken monkeyGood to hear, thanks a lot for testing!
Committed.
Thanks again, everyone!
Comment #9
vidorado commentedStill having this issue in Search API 8.x-1.23
Attaching a patch ;)
Comment #10
vidorado commentedI can confirm that this issue is now resolved in Search API 1.28