Raj Vachhani

OSAPI Search query issue

Discussion created by Raj Vachhani on Aug 3, 2016
Latest reply on Aug 21, 2016 by matt.hill

Hi Folks,

    Can anyone help me to identify why my #1 javascript search works and #2 does not render any data? Only the type and subtypes are changed.


1) This works fine for me.


var searchQ = { "search": query, "subjectonly": false, "count": count, "type": "message", "place": "/places/" + placeID, "depth": searchDepth };

osapi.jive.corev3.contents.search(searchQ).execute(function (data) {......




2)However, below search pattern returns no records when I change my type parameter to discussion. Any idea on what else I am missing?


var searchQ = {"search":query,"subjectonly":false,"count":count,"type":"discussion","subtype":"question", "place":"/places/" + placeID,"depth":searchDepth};

osapi.jive.corev3.contents.search(searchQ).execute(function (data) {......