Closed (cannot reproduce)
Project:
Search API
Version:
8.x-1.x-dev
Component:
Plugins
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Dec 2015 at 16:29 UTC
Updated:
17 Jan 2019 at 12:28 UTC
Jump to comment: Most recent
Comments
Comment #2
drunken monkeyAdding the status check to the datasource config instead of having a processor for it sounds sensible in any case, yes. However, it doesn't seem like content entities have a generic concept of "status" like config entities, so I'm not sure how that could work? Or still just specific to nodes (or a few other core entity types)?
However, while it's more or less the first time I look at condition plugins and it's far from clear to me what they are really doing, it seems they can't really be used to change a database/entity query, right? Just for evaluating it corresponding to the current "context" and returning whether the condition matches.
So, unless we want to throw out the rest of the performance gains we get from using a query for filtering the whole set of entities according to the datasource config, we can't use conditions. And even then we'd have to write all three mentioned plugins ourselves, as far as I can see (OK,
Languagemight be reusable, but only if we code the integration in a specific way so it can work) – doesn't look like much of an advantage to me.In any case, insofar as all of this would only touch plugins (the content entity datasource and, maybe, the "Node status" processor), this probably really wouldn't be a beta blocker. But, unless I'm mistaken in my assessment of condition plugins, not really worthwhile.
Comment #3
legolasboI am closing this issue because information was requested over a year ago, but no new information has been provided since. Please reopen this issue with the requested information if you think that this issue is still relevant.