Filtering by an attributte of a document in Document Collection Resource of Content REST API

Hi,

it is possible to filter using “_query” parameter the documents that Document Collection Resource of Content REST API returns only searching in an attribute of the document?

https://www.onehippo.org/library/concepts/rest/content-rest-api/document-collection-resource.html says that " Technically, the query is executed using the JCR “contains” method. For details on the exact query capabilities, see the spec."

For example, I’m triying to issue a request like these:

…/api/documents?_nodetype=hippocms:OpMnl&_attributes=hippocms:series,hippocms:documents&amp&_query=ey210

Our node type OpMnl contains an attribute “series”, and we want to recover only documents containing “ey210” value in “series” attribute.

It is possible usign Content REST API?

Thanks in advance,

Hi, I don’t think this is possible in the content rest api. You will need to do some custom work. You could file an improvement issue for this in the HST project, but I can’t guarantee it will be picked up.