Forum Discussion

Nik's avatar
Nik
Contributor
8 years ago

Just looking for some advice around APIs

Hi Everyone

 

I'm sorry if this question has been asked before, despite my wanderings through the posts I couldn't  an answer that specifically answered my questions.

 

In short I am trying to find a way to integrate a forum with a number of online help articles, and I believe the API might be able to do this. I'm hoping someone can point me in the right direction or give me an idea of how feasible this is.

 

Ideally I would like users searching the forum to see a number of relevant forum posts based off the search they used. In addition within their search results I would also like the user to see a couple of relevant online help articles drawn from the online help articles.

 

At the same time Id like to be able to almost do the reverse and have the online help article display a couple of forum posts/threads on the same topic that have been marked as a solution. Currently this is done using an RSS feed and just picks up the latest posts and not necessarily the most relevant additional posts, something Im trying to rectify.

 

For example

 

client searches the forum using the search of bananas, In the search results Id like to see something like the following

 

Banana post 2 (marked solution)

Banana post 3 (marked solution)

Banana post 1 (no marked solutions)

Banana help article 1

 

And if the same client searches the online help articles for banana they see

 

banana help article 1 - with links displayed to banana posts 2 & 3 as they have marked solutions

 

 

Is someone able to clarify if this is possible and if so how would I go about it?

  • Nikv - If online help articles are not part of LITHIUM, there are two approach to achieve this. 

    Approach 1 :  Custom Search

    Create a new component for search. You will need to hit both query at the same time and need to find a way to combine the result of both query. 

    Query 1: Get messages from lithium.

    For the lithium you can use the below query. 

    SELECT * FROM messages WHERE subject MATCHES 'wireless' OR body MATCHES 'wireless'

    You can find the reference here https://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv2&collection=messages#constraints-subject. 

     

    Query 2 :  Get all the matching article from online help article server. 

     

    Second Approach : Open Source Search Platform 

    You can built your search using open source platform Solr and Elastic search. 

    Here is the documentation for both. 

    http://lucene.apache.org/solr/

    https://www.elastic.co/

     

    These platform store the data from different platform and combined them so you can get the result with only  single query. 

     

    Here is the example of Solr search which we have done for Optmizely community. 

    https://community.optimizely.com/t5/forums/searchpage?q=search&pnum=0&refineType=

     

    Give kudos if you find my posts helpful or mark solution if it answers your query

    Tariq

     

    • Nik's avatar
      Nik
      Contributor

      Hi TariqHussain

       

      Thanks for your information, it was very helpful in understanding what options I have.

       

      I do greatly appreciate the help!

       

      I'm sure I'll be back to answer more probably obvious questions as I further develop this project

       

      Thanks

      Nik