The client-side JavaScript-based search engine comes preconfigured in the WebHelp responsive plugin. It is enabled by default when you run the WebHelp Responsive transformation.
The search index is created when you publish your documentation to WebHelp by traverses all HTML pages (for DITA topics) from output folder to gather information.
When you enter search terms in the
Search field, the results are displayed in a results page. When you
click on a result, the topic is opened in the main pane and the search results are
highlighted. If you want to remove the colored highlights, click the
Toggle Highlights button at the
top-right side of the page. The Search field also includes an
autocomplete feature.
Each result includes the topic title that can be clicked to open that page. Under the title, a breadcrumb is displayed that shows the path of the topic and you can click any of the topics in the breadcrumb to open that particular page.
If you enter multiple search terms (other than stop words), for any result that the search engine found at least one term but not one or more of the other terms, the Missing terms will be listed below each result.
searchQuery URL
parameter to perform a search operation when WebHelp is loaded. This opens the Search
Results page with the specified search query processed. The URL should look something like
this:http://localhost/webhelp/search.html?searchQuery=deploying%20feedbackHTML tag elements are also assigned a scoring value and these values are evaluated for the search results. For information about editing these values, see How to Change Element Scoring in Search Results.
<indexterm> and
<keywords> DITA elements are an effective way to increase the
ranking of a page (for example, content inside a keywords element weighs more than an
H1 HTML element).To improve performance, the Search feature excludes certain stop words. For example, the English version of the stop words includes: a, an, and, are, as, at, be, but, by, for, if, in, into, is, it, no, not, of, on, or, such, that, the, their, then, there, these, they, this, to, was, will, with.