Closed (outdated)
Project:
Search API
Version:
7.x-1.x-dev
Component:
Framework
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Jan 2012 at 13:20 UTC
Updated:
10 Jan 2019 at 08:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
drewish commentedSeems like that could mean quite a bit more memory right?
Comment #2
drunken monkeyYes, but only for a short time during indexing, before the memory is reclaimed.
This revised patch even improves that by immediately
unsetting all cloned items when they aren't needed anymore.Comment #3
mh86 commentedTested patch from #2 and it looks good to me (although I haven't done any memory usage comparisons)
Comment #4
drunken monkeyOK, committed.
Comment #5
jsacksick commentedI'm not sure this is really working well, I just had an issue with the hierarchy data alteration callback.
I added a property to an entity which is more or less a copy of a taxonomy reference field, I had a problem in the getter callback because when I was trying to access the altered field the structure expected normally looks like the following :
$entity->field_name[LANGUAGE_NONE][0]['tid']Instead of that, I had sthg like :
$entity->field_name = array( TID_VALUE => TID_VALUE.To avoid that in my getter callback I load the entity again (unaltered) instead of the entity coming from the parameters of the getter callback.
I don't know if I'm clear enough ! Feel free to ask questions
Comment #6
drunken monkeySo you say this doesn't work with a custom property you added?
Did it work before the patch? Otherwise, please create a new issue.
Also, did you define a setter callback that stores the values in the proper format? Maybe that's the problem?
Comment #7
legolasboThis issue has not seen activity in over 2,5 years. I am therefore closing this issue to clean up the issue queue. Feel free to re-open and update this issue if you feel this issue is still relevant and of importance.