How to change infocenter search results? [message #650838] |
Wed, 26 January 2011 13:37  |
Eclipse User |
|
|
|
We are using Galileo and deploying infocenters as a webapp that we host. The search results are listed in alphabetical order by doc plug-in. For example, all the results in plug-in A are listed first, then plug-in B, etc. The results are not listed by relevency against the search terms. The most relevent result could be last in the list.
For example, if the user searches on "deploy the machine" this phrase actually appears in the index and in a topic title but shows up last in the search results because of the plug-in that contains the topic.
How can we change the default search results to give more weight to titles, index terms, etc.
Thanks,
Sharon
|
|
|
|
|
Re: How to change infocenter search results? [message #651314 is a reply to message #651143] |
Fri, 28 January 2011 16:52  |
Eclipse User |
|
|
|
The search index is built from html files so it would depend on how DITA converted those tags to HTML. All words in the body of the document get equal weight. Keywords defined in a <meta> tag such as
<meta name="keywords" content="eclipse">
will get the same weight as words in the body. Words in a <title> get a significant boost.
If you are searching for a two word phrase such as "help system" a document which contains those two words adjacent to each other and in that order will score higher than another document where the words are separated.
Those are about all the rules I'm aware of. Since the search is performed by the Lucene search engine the ranking algorithm is to some extent determined by Lucene, an example being that two matches in a long document is scored lower than two matches in a short document.
|
|
|
Powered by
FUDForum. Page generated in 0.03759 seconds