Search engine
Then search engine has two main components:
- Search indexer
-
It is also known as a spider. This component is active when you publish your documentation to WebHelp and it is responsible for creating the search index. This component traverses all HTML pages (for DITA topics) to gather information.
- Search interface
- This component is an interface between the user and the search index. It helps the user to search through the search index and displays results in the search page.
Search Rules
- You can use quotes to perform an exact search for multiple word phrases (for example, "grow flowers" will only return results if both words are found consecutively and exactly as they are typed in the search field). This type of search is known as a phrase search.
- Boolean Search is supported using the following operators: and, or, not. When there are two adjacent search terms without an operator, or is used as the default search operator (for example, grow flowers is the same as grow or flowers).
- The space character separates keywords (an expression such as grow flowers counts as two separate keywords: grow and flowers).
indexterm
andkeywords
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).- Words composed by merging two or more words with colon (":"), minus ("-"), underline ("_"), or dot (".") characters count as a single word.
- Your search terms should contain two or more characters (note that stop words will be ignored). This rule does not apply to CJK (Chinese, Japanese, Korean) languages.
5-Star Rating Mechanism and Sorting
- Search entries that satisfy the phrase search criterion are presented first.
- The number of keywords found in a single page (the higher the number, the better).
- The context (for example, a word found in a title scores better than a word found in
unformatted text). The search ranking order, sorted by relevance is as follows:
- The search term is included in a meta keyword
- The search term is in the title of the page
- The search term is in bold text in a paragraph
- The search term is in normal text in a paragraph
Tag Element Scoring Values
HTML 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.
Excluded Terms
To improve performance, the Search feature excludes certain stop words. For example, the English version of such stop words include: 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.
Search Field
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.