Forum Discussion

jmurray's avatar
jmurray
Champion
13 years ago

Is there any way to omit TKBs from search results?

I'm making this call to pull in unsolved threads:

 

<#assign rest_query = "/boards/id/mynode/search/messages?openresponse=true&sort_by=-topicPostDate&page_size=" + results_list_size/>

 However, it's pulling in TKB articles as well, which screws up the module because it doesn't seem to care if the article it's based on are solved or not.  I just need to tell it "quit pulling in TKBs with these results."  Any ideas on how?

  • you can add "include_forums=true" in order to only return forums results and not tkb:

     

    <#assign rest_query = "/boards/id/mynode/search/messages?openresponse=true&sort_by=-topicPostDate&include_forums=true&page_size=" + results_list_size/>

     

2 Replies

  • ChiaraS's avatar
    ChiaraS
    Lithium Alumni (Retired)
    13 years ago

    you can add "include_forums=true" in order to only return forums results and not tkb:

     

    <#assign rest_query = "/boards/id/mynode/search/messages?openresponse=true&sort_by=-topicPostDate&include_forums=true&page_size=" + results_list_size/>