I have a requirement in which I need to override the Liferay Default Search functionality in such a way that, whenever a user searches it should work in the following way:
Already some third party restful services is available which return the result for any search keywords, Let say the search key work is "Test", if we pass "Test" to the third party services it will return the result in the form of json, which we need to display within the search result page.
I plan to achieve this by the following way, but would like to know form you guys whether I am doing the right way.
Step 1: I will create a hook project where I will override the main_search_result_form.jsp to format the result page.
Step 2: I will create a Indexer where I will implement and make a call to the restful service with the search keyword, I will return the resultant json object.
Step 3: I will get the json in main_search_result_form.jsp and I will format the page based on that json output
Like to know whether My approach is correct