AnsweredAssumed Answered

OSAPI Search Query Filter issue

Question asked by historian on Nov 29, 2016
Latest reply on Mar 9, 2017 by historian

The following throws an "Invalid filter expression (quick brown) AND (fox OR rabbit) AND NOT forest" error. I suspect it is the parenthese, but I'm unsure how to pass them. Converting the the characters to %28 and %29 doesn't seem to work.

 

var searchQuery = {search: "(quick brown) AND (fox OR rabbit) AND NOT forest", subjectonly: false, count: "10", fields: "@all"}
osapi.jive.corev3.contents.search(searchQuery).execute(function(res) {
     console.log(res);
}


What is the proper way to do this?

Outcomes