Hello everyone,
We are using using DITA-OT 2.5.4 to generate webhelp responsive output and host in our documentation website. However, we are seeing some issues with the search. I am trying to customize the plugin to get the desired result, however, I am not anywhere close to this. I need some guidance on this. Here are some of the issues that I am trying to fix:
1. The number of search results are high. When I search for a phrase that has three words, it brings up all the results that contain any one of these three words. We can use double quotes to filter the results, however, it doesn't give the related results. It gives only the results with the exact match. Is there way way that we can limit the search results without using double quotes? Here is a search query for your reference:
https://www.ge.com/digital/documentation/predix-apm/search.html?searchQuery=asset+health+manager
2. The
short description in the search result displays only a part of the first sentence of the html file. Because of this, some of the search results looks irrelevant even if it contains the exact phrase somewhere down the html file. Is there a way to highlight
the part in the topic where the search term is available?
3. The
sorting of the search result is based on the scoring. I would like to customize it as per our requirement. For example, the content in the <title> tag should have the highest scoring. I tried updating the scoring.properties file. However, it didn't work. Is there a way to update the scoring?
4. The items in the search results displays the <h1> tag of the html files, which is the section name in our case. In the same html file, we have the topics under <h2>. Is there a way to display the <h2> items in the results page?
Thank you in advance.