I am interacting with my portal in js code. I wish to query the portal for tagged content using wildcard searches in my query filter.
Code:
const queryParams = new PortalQueryParams({
filter: 'orgid:MyOrgID AND tags:"TES*"',
num: 100
});
portal.queryItems(queryParams).then(function(results){
// no results are returned
// we expect results to have tags like TEST, TESTER, TESTING, etc.
});
I've tried an escape character (\*) and different wildcard characters (*, %, #, etc.) with no success.
I'm missing something obvious. Again. TIA.
Solved! Go to Solution.
I think filter only accepts exact values and query is the property you should go with.
Did you try omitting the quotation marks around TES*?
Without the double-quotes and using either TES\* or TES* returns all content (throttled at 100 in queryParams).
I think filter only accepts exact values and query is the property you should go with.