Setup

  • Solr version: 8.8.2
  • Drupal Core version: 9.1.9
  • Search API version: 8.x-1.19
  • Search API Solr version: 4.1.11

Issue

search_api_solr/src/Plugin/search_api/backend/SearchApiSolrBackend.php
Line: 2452

Code: sprintf('%.1f', $boost)

the problem is the sprintf with parameter "f" - "the argument is treated as a float and presented as a floating-point number (locale aware). "

On German Websites (locale=de_De) this leads to a boost_term "String|1,0" and this throw´s a error on the solr server
-> possible analysis error: For input string: "5,​0"

You have to use the paramter '%.1F' instead

CommentFileSizeAuthor
#4 3216750.patch3.03 KBmkalkbrenner

Comments

t.seifert created an issue. See original summary.

t.seifert’s picture

Issue summary: View changes
t.seifert’s picture

Issue summary: View changes
mkalkbrenner’s picture

Version: 4.1.11 » 4.x-dev
Status: Active » Needs review
StatusFileSize
new3.03 KB
mkalkbrenner’s picture

Title: Boost_Term Cause Solr Error: possible analysis error: For input string: "5,​0" » Boost_Term Cause Solr Error: possible analysis error: For input string: "5,0"

  • mkalkbrenner committed 7cbf64f on 4.x
    Issue #3216750 by mkalkbrenner, t.seifert: Boost_Term Cause Solr Error...
mkalkbrenner’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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