When a search query contains a pipe character (|) followed by a non-numeric value (e.g. test|c), Solr incorrectly treats the value after the pipe as a payload and attempts to parse it as a float. This results in a runtime failure with the following error:
NumberFormatException: For input string: "c"
at org.apache.lucene.analysis.payloads.FloatEncoder.encode(FloatEncoder.java:31)
at org.apache.lucene.analysis.payloads.DelimitedPayloadTokenFilter.incrementToken(DelimitedPayloadTokenFi
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | parse-float-on-string-3571438.patch | 1.06 KB | ahmad.estaitia |
Issue fork search_api_solr-3571438
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
ahmad.estaitia commentedComment #4
mkalkbrennerThis patch will break features.
Use the existing preg_replace processor.