You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently this is not possible with our Search API, you will have to filter manually by type, as our Search API only allows to use the relationship queries to filter by a value on the relationship and not by the relationship type itself.
Hello! I'm having an issue trying to query for entries by a related entry's contentType.
I have 3 models -
Resource
,BlogPost
andVideo
I'm trying to query this model:
Resource
which has the single-reference field:
RESOURCE:
entry
=>BlogPost
orVideo
My query using the gem looks like this:
Content::Resource.all('fields.entry.sys.contentType.sys.id': 'blogPost', include: 4)
(the internal implementation of this should be fine, as
include: 4
is passed correctly as an option along with the field query in the logs)I get no errors.
What I get back is:
100
Resource
entries, containing a mix ofBlogPost
andVideo
entries linked to theentry
fieldWhat i want is:
Only
Resource
entries withBlogPost
s linked to theentry
fieldAny clue where the issue is? Thank you!
The text was updated successfully, but these errors were encountered: