Closed (fixed)
Project:
Search API
Version:
8.x-1.x-dev
Component:
Views integration
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Sep 2017 at 21:46 UTC
Updated:
2 Oct 2017 at 14:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
lendudeMixing entities is not possible in core Views. You've already went to the place that might offer a solution (Search API), so moving this to the Search API queue.
Comment #3
drunken monkeyFor normal filters, you can just create an OR filter group for the two filters, so that either will work.
That won't work with contextual filters, though, I guess. But if the argument is the same anyways, you can resolve this by just having the author information in a single field for either item type ("datasource" in Search API lingo). For that, just use an "Aggregated field" (listed as such when adding fields to the search index), selecting type "Union" (or almost any other, really) and then the two UID fields. Then just place the contextual filter on that new field and it should work as expected. (Give the aggregated field a meaningful machine name and label, to make things easier.)
Comment #4
zenimagine commentedI updated my view (index). How to put an OR between the two contextual filters?
Comment #5
zenimagine commented@drunken monkey I did not know this feature. Thank you very much it works.