Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
When only one double qoute is used in the search terms the value of $ret['#conjuction'] is added to $str and unset, causing "Notice: Undefined index: #conjunction in SearchApiDbService->prepareKeys() (line 705 of...".
To reproduce using the db server use a multiple terms query and search terms like: "some terms here with no closing quote mark. Looks like element_children() may help.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1166514--parseKeys-incomplete-quotes.patch | 991 bytes | drunken monkey |
Comments
Comment #1
drunken monkeyAh, thanks for spotting this!
The code was a bit off – don't see what we gain by adding the conjunction right away, apart from problems. The attached patch should fix this.
Comment #2
awolfey CreditAttribution: awolfey commentedWorks for me.
Comment #3
drunken monkeyGreat, committed!