Search API -- excluding multiple tags
I am doing a search with the expression:
"resource_type:video AND -tags=fail AND -tags=cheat"
This results in the error shown:
If I change the expression to exclude only a single tag, the search works as expected.
Is there a different syntax to search for items that don't include multiple tags?
-
Thank you, this fixes the issue with an error occurring!
However, the results are not what I expected. I have an item with a single tag "cheat" and it is getting returned when the expression includes -tags=cheat,mod.
Even items with both cheat and mod tags are getting returned.
Example on dashboard:
Tracing into the SDK, here is what is passed to the endpoint for the search params:
-
Hi Alan,
Could you please try
"resource_type=video AND -tags:cheat,mod"
Change the equals sign "=" to colon ":". The equals sign is expecting an exact match.
You can learn more about this here.
Please let me know how it goes.
Regards,
Francis
Please sign in to leave a comment.
Comments
4 comments