Forum Discussion

DBurnell's avatar
14 years ago

Obtaining message attributes to use as filters for search results

We are currently crawling our community content using Rest API from our external Knowldgebase Search engine which provides facets or filters to allow users to narrow their search results.

 

Is there any way to identify board type (Board, Blog, Ideas etc), user tags, Solved attribute and number of replies for each item returned in the search results to include as search filters?

 

Thanks,

Darren

6 Replies

  • JakeR's avatar
    JakeR
    Khoros Oracle
    14 years ago

    If you're making calls against the Community, Board, or Blog class, you can get the info you want.  However, you have to use very specific methods (within the various classes) to get the information that you mention (Tags, Number of Replies, etc).  Once you grab that information, you can store it and parse it however you like with your company's Search tool(s).

     

    When we talk about what can actually be yielded through our API using the "Search" method, this is what you can get:

     

    * Subject / title of post - <subject>

    * Time-stamp - <post_time>

    * URL to post (for hyperlink) – view_href attribute on <message>

    * Author – <author>

    * URL to author profile – view_href attribute on <author>

    * Message Body – <body> (requires passing an additional parameter to the request - restapi.format_detail=full_list_element)

  • DBurnell's avatar
    DBurnell
    Guide
    14 years ago

    Thanks Jake!

    This is very helpful, and thanks forthe tip on the additional parameter for the message body.

    I got these examples from Damian, just in case others would like to see some examples.

    Top tags

    <Community Domain>/<Community ID>/restapi/vc/tagging/tags/top/tags

     

    Top tags related to a predefined tag in a category

    <Community Domain>/<Community ID>/restapi/vc/categories/id/<Category ID>/tagging/for/tags/text/<Tag>/tags/related/top/tags

     

    Top tags related to a predefined tag in a board

    <Community Domain>/<Community ID>/restapi/vc/boards/id/<boardID>/tagging/for/tags/text/<Tag>/tags/related/top/tags

  • JakeR's avatar
    JakeR
    Khoros Oracle
    14 years ago
    Ahh yes - This is good additional info.

    I've nominated this thread for a future knowledge-base article.

    BTW - I hope your project is coming along well.
  • Darren,

     

    Very cool!  I've always wanted to see results pulled and displayed with priority for KB articles, then solved discussions...

     

    By the category and board ID information, we should be able to determine if it is a KB or not - that's great.  I think I see that this can also be used to filter results by language if you have multiple languages within a single instance of community.

     

    Thanks for sharing what you are doing - awesome!

     

    JakeR,

     

    Maybe I've missed it, but is there a flag set that says a discussion thread has been solved - is an accepted solution?

    Perhaps no, that you stipulated what was available via rest api for search.  I just wondered since active cast seems to have some solution oriented selections, and that is based on the rest api, right?  

     

    Mark

  • DBurnell's avatar
    DBurnell
    Guide
    14 years ago
    Kudos goes to Damian from Lithium support for providing these links.
  • As I can see, there is no way to search with the last_edit_time field instead of post_time?