Forum Discussion
dhiraj_gophane
11 years agoLeader
Hi Claudius,
This works for single tag.
what if I want to filter messages of more than one tags.
E.g. I want to filter messages having "tag1" or "tag2" or "tag3" or any combination of selected Tags.
This works for single tag.
what if I want to filter messages of more than one tags.
E.g. I want to filter messages having "tag1" or "tag2" or "tag3" or any combination of selected Tags.
HaidongG
11 years agoLithium Alumni (Retired)
Hi dhiraj_gophane
may you try this?
/restapi/vc/search/messages?q=is_root:true%20AND%20tags:(tag1%20OR%20tag2)
is_root means topics only, no replies, if you want the reply, it will like
/restapi/vc/search/messages?q=tags:(tag1%20OR%20tag2)
I hope that it can help you.
Best Regards
Haidong
btw: if your tag contains space, you will need to use something like
/restapi/vc/search/messages?q=is_root:true%20AND%20tags:(%22test%20space%22)
we are searching for topics with tag="test space" in the above example.
- dhiraj_gophane11 years agoLeaderHi,
I'm using same Rest API.
but for some tags it fetches messages which do not include that Tag.
E.g. /restapi/vc/boards/id/blogger/search/messages?q=is_root:true%20AND%20tags:(Activity)
where, Activity is a Tag.
Is there any other way to fetch these messages by passing tag list?- HaidongG11 years agoLithium Alumni (Retired)
hi dhiraj_gophane,
can you give exact messages which don't have the tags but got picked up by the REST API call? it sounds a bug for me. you may want to fill a ticket with Lithium Support.
Best Regards
Haidong
Related Content
- 2 years ago
- 3 years ago