Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I had the problem, when a string in the node has some special characters the unserialize() function failed an the node is loaded by node_load() in _solr_document_to_node().
To prevent this problem, the serialized string should be urlencoded before the data is sent to solr (see patch).
Or is there another solution?
Comment | File | Size | Author |
---|---|---|---|
nd_search-serialize-encode.patch | 780 bytes | weri |
Comments
Comment #1
swentel CreditAttribution: swentel commentedThis is interesting, I've been bitten by this one too a couple of times, but I never really investigated this. Moving this to the Display Suite project to test (support for search in D7 moved overthere too). I'll let you know how this turns out!
I'm not fully sure If I'll be able to commit this to D6 since people will have to wipe their entire index, maybe as a patch for the next download.
Comment #2
swentel CreditAttribution: swentel commentedI've committed this to the 7 branch of DS after testing and your fix works! Great, haven't committed this to D6 version because people running previous versions and having to upgrade would have to wipe their entire index. Added info on the project page of http://drupal.org/project/nd_contrib with a link to this patch so people can use it if they really have to.
Comment #3
weri CreditAttribution: weri commentedGreat! Thank you!
People could be confused, because the issue is set to version 7 and the patch is for version 6? I think it's better to change the Version of this issue back to 6?
Comment #4
swentel CreditAttribution: swentel commentedTrue, changed the version tag.