How may i search a content property via REST CQL search?

I have solved my issue. These are the two things I was not aware of:

  1. The json object should not be {key: "doclang", value: "de}", but: key: "doclang", value: {value: "de"}
    The “outer” value is a reserved word, while the “inner” value is an arbitrary property name.
  2. This finds the content property: {baseurl}/{contextpath}/rest/api/content/search?cql=content.property[doclang].value=de
    My prior cql query contained double quotes, which - even if escaped - are not accepted. Further, hyphens are not accepted in any manor.

I hope this thread will help someone else.

Best regards
Alex

1 Like