Boost Documents for Specific Keywords

Keyword Based enables an admin to arrange the order of top 10 results for one search term or a whole set of search terms. To use the feature, navigate to Keyword Based in Search Tuning and perform the following steps.

Settings

  1. Select a search client. The order of results will be changed only on the selected search client.

  2. Toggle the Boost search results for specific search queries switch to view settings.

  3. Run a search.

  4. Click Add Keywords to select a document.

  5. A dialog will open. Enter a query or a query pattern in the form of Regex and click Add. The query or pattern will vanish from the search bar on pressing Add and a slider will appear. Move the slider to select a rank, which can be any integer between 1 and 10, and click Save. Now the selected document will have the new rank for the keyword.

Move to Test Your Tuning, select your search client, and run your search again with the same keyword to view the tuned results. If the order of documents has changed in Test Your Tuning, then it has successfully changed for search client users as well.

Regex and Keyword Tuning

Starting Mamba '21, it's possible to boost documents for keywords as well as regex query patterns. For instance, you can boost Document X for query "search" and for a pattern "/search??/i" which will boost Document X for "search", "Search", "SEARCH", "searches", "SEARCHES", "Searches" and several other matching patterns. In the following image, SearchUnify* and Data AND Protection are regex-based queries.

In case a document is boosted for both a query and a pattern, then the query ranking will take precedence.

A way to get the most out of regex-based keyword tuning is to narrow the scope of patterns. .* will match all queries and will be close to useless and /search/ is little better than a query. The ideal regex will be somewhere in-between, where the scope of pattern expansion is limited to a couple of dozen keywords and not hundreds or thousands of potential queries. Here are a few examples.

Pattern Possible Expansions Verdict
/sale?/ Less than 50 Good
/sale?/i Less than 100 Good
/search??/ Less than 5000 Intermediate
/search??/i More than 10000 Intermediate
.* Infinite Unacceptable

Last updatedFriday, November 27, 2020