This is a reroll of patch #2 against 2.1.x
This is a re-roll of #4, based on 📌 Automated Drupal 10 compatibility fixes Needs review
For one of our projects, we use the patch from #15, which worked fine. But due to deprecation of the boost-parameter, in combination with Elasticsearch 8, an error will occur:
[error] Message: {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Unknown
parameter [boost] on mapper
[rendered_item]"}],"type":"mapper_parsing_exception","reason":"Failed to
parse mapping: Unknown parameter [boost] on mapper
[rendered_item]","caused_by":{"type":"mapper_parsing_exception","reason":"Unknown
parameter [boost] on mapper [rendered_item]"}},"status":400}
When the boost-parameter is omitted, it works fine. Therefore I've rerolled the patch from #15, without the boost property.
So this is not a reroll of #21 and therefore this still needs work.
As described in
📌
Index time boost is deprecated
Needs review
Index time boost is deprecated. Using Elasticsearch 8.x this results in errors.
To avoid conflicts while applying both the patch from
📌
Index time boost is deprecated
Needs review
and this patch, I've rerolled the patch from #3 to incorporate both changes and added an interdiff.
This patch only removes the boosting in the mapping factory and leaves the query-time boosting in SearchBuilder
as is.
Tested with elasticsearch 8.9.1
Patch looks good and works as described
Confirmed that the patch is working correctly.
Reroll of #12 against 8.x-7.x-dev branch