10 Replies Latest reply on Mar 9, 2017 5:47 AM by historian

    OSAPI Search Query Filter issue

    historian Intermediate

      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) {

      What is the proper way to do this?