Closed (fixed)
Project:
Search API Solr
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
27 Jun 2015 at 17:29 UTC
Updated:
3 Dec 2015 at 13:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
fortis commentedthere is problem
$fq[] = count($q) == 1 ? reset($q) : '((' . implode(')' . $sep . '(', $q) . '))';we need check that $q not empty
quickfix attached
Comment #2
fortis commentedComment #3
fortis commentedComment #4
thepanz commentedWorks fine, thanks!
Comment #5
drunken monkeyThanks a lot for reporting this! You're right, we should definitely check for this (even though there's gotta be something strange about the incoming query then, too).
Your patch looks also good and seems to work fine!
However, I think this one is a bit more elegant, does it also work for you?
Comment #6
fortis commentedYes, it works, thank you!
Comment #7
drunken monkeyOK, good to hear. Thanks for testing, and thanks again for your work before!
Committed!
Comment #9
fortis commentedComment #11
c-logemannHere is a patch for 8.x-1.x-dev branch: #2625932: Fix "SyntaxError: Cannot parse '(())'" also in 8.x-1.x-dev