Forum Discussion

ttkktt's avatar
ttkktt
Contributor
10 years ago

how to search the whole community but not include some broads?

I want to search the whole community but not include some broads, how can I do this ?

http://xxxxx/restapi/vc/search/messages?phrase=xxxxx&restapi.format_detail=full_list_element&restapi.response_style=view

this api only search the whole commuity. Did anyone encounter the same problem?

 

  • if you want to target some of the broads only, you may want to use "&board_ids=b1,b2,b3" in your query.

  • I am not sure if this would fit to your needs, but hiding those boards from community structure in admin would skip them from the Rest API results, hence you can make the call without including them.

    • ttkktt's avatar
      ttkktt
      Contributor

      No other API or parameter to make this done?

      • HaidongG's avatar
        HaidongG
        Lithium Alumni (Retired)

        if you want to target some of the broads only, you may want to use "&board_ids=b1,b2,b3" in your query.