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?

CommentFileSizeAuthor
nd_search-serialize-encode.patch780 bytesweri
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

swentel’s picture

Project: Node displays contributions » Display Suite
Version: 6.x-2.4 » 7.x-1.x-dev
Component: ND Search » Code

This 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.

swentel’s picture

Status: Active » Fixed

I'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.

weri’s picture

Great! 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?

swentel’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev

True, changed the version tag.

Status: Fixed » Closed (fixed)

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