Closed (fixed)
Project:
Search API (8.x)
Component:
Framework
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
5 May 2014 at 14:45 UTC
Updated:
19 May 2014 at 19:00 UTC
Jump to comment: Most recent
Needs following:
// @todo Re-introduce Datasource::getEntityType() for this?
// @todo Only process nodes (check '#datasource' key).
Comments
Comment #1
blueminds commentedComment #2
blueminds commentedupdated eca1967..291e507
Comment #3
blueminds commentedComment #4
drunken monkeyLooks good, thanks.
A later optimization could be to go through all datasources first in
preprocessIndexItems()to find out which of them contain nodes, collect those in an associative array and then just check withisset()instead of that huge calling chain for each item.Might at least be a bit cleaner to look at, even if the performance gain is probably pretty small even for large numbers of items.