Forum Discussion

vishwajeet_hol's avatar
9 years ago

Search messages within "n" categories.

Hi,

 

There are "n" categories and boards in a community.

Prevoiusly to search messages from whole communnity, I was using the below rest call :

/search/messages?q=<SearchString>&collapse_discussion=false

 

Suppose I want to search messages from community excluding one category/borad.

How to do this using REST V1 call.

 

If not V1 then V2 will be acceptable.

 

Thanks,

Vishwajeet

    • vishwajeet_hol's avatar
      vishwajeet_hol
      Expert

      Thanks for replying VarunGrazitti,

      I have already checked that. 

      That will be an allternative solution as I am going to search by

      • query string,
      • author and
      • tag 

      If I use REST V2 call then I have to use "Sybject matches 'string', Body matches 'string', etc"

      I have to handle all these conditions. And how will I filter by tags, is also an issue.

       

      Instead of this if there is any REST V1 call, then it will be good for me.

       

      Thanks,

      Vishwajeet

      • VarunGrazitti's avatar
        VarunGrazitti
        Boss
        In that case, you can restructure your boards and put in a different category and make a V1 call.
        I hope this helps.