Boost Documents for Specific Keywords

Keyword allows you to fix the rank to a document for one or more search queries. This feature is useful when you have a list of documents that you want to turn up at specific positions in search results for a defined set of queries. For a employee at a space firm, this feature is godsend. They can make a document with the title Earth-to-Moon Return Fare List return to any rank between one and ten for the keywords "fare", "moon", and "earth to moon."

The only prerequisite is that the keyword (or one of its synonyms) for which a document is boosted should occur somewhere in the doc. The space firm employee cannot boost Earth-to-Moon Return Fare List for the keyword "Saturn" if there is no mention of the sixth planet in the doc.

To use the feature, navigate to Keyword in Search Tuning > Manual Tuning.

Select a Search Client for Manual Tuning

Manual Tuning is not universal. You can apply it to a search client without impacting others. To get started, pick the search client where tuning is going to be applied.

  1. From Search Tuning, go to Manual.

  2. Select a search client where Manual Tuning is going to be applied.

  3. When there are multiple search clients in a SearchUnify instance and your job is to apply manual tuning to only one of them, you can bookmark your search client by clicking in the Select Search Client dropdown.

Enable Keyword Tuning

Keyword tuning is a powerful method to force ranking. If a document has been assigned, let's assume, rank 5 for one or more queries, then the document will always turn up on that position provided that the keyword(s) or its synonym(s) are available in the boosted document.


Keyword tuning is incompatible with Re-Ranking in Auto Tuning. You can use either Keyword Tuning or Re-Ranking but not both.

  1. In Keyword, turn on Boost Documents for Keywords to view settings.

  2. Run a search for query for which you want to boost one or more results.

  3. Find a document for boosting and click Add Keywords.

  4. A dialog opens. Enter the same query or a query pattern in Regex and click Add.

  5. Move the slider to select a rank between 1 and 10. In the image, rank 4 has been selected.

  6. When Bypass All Filters is checked, keyword and intent tuning are force applied, irrespective of the selected filters.

    • Here's an illustration of what happens when Bypass All Filters is checked. Despite there being no comments (filter Comment Count) and no response (filter Answered), the boosted document "login for website within website integration" is on position four.

  7. Click Save.

  8. Click Compare & Save.

  9. Run the search query again. In our case, the query is website.

  10. If the query turns up on the right position, click Apply Changes.

Another method is to move to Test Your Tuning, select your search client, and run the search again. If the order of documents has changed in Test Your Tuning, then it has successfully changed for search client users.

Regex and Keyword Tuning

Documents can be boosted for queries and regular expressions, the latter being more efficient.

When document_x is boosted for the query key at position five, then it may not show up on position five if a user searches keys. Query boosting considers key and keys as different keywords.

On the other hand, a regular expression, such as /key?/i covers both variants and the document_x is ranked correctly for both of them.


When a document has been boosted for a query and a regular expression, then query ranking takes precedence.

An admin can boost document_x for /key?/i at position eight. If another admin boosts document_x now for the query keys at position five, then document_x will show up at position five for the query keys.

The precedence is in the order:

A way to get the most out of regular expressions is to narrow the scope of patterns.

.* matches all queries. Such a pattern is not of much use.

A pattern, such as /search/, is little better than a query.

The ideal regex is somewhere between these extremes, where 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 Boosts
^(.*?)reporting 2.0.*$

Documents that contain “reporting 2.0”.

Example<any_word> reporting 2.0 <any_word>.

^.*(reporting 2.0|working).*$

Documents that contain either “reporting 2.0” or “working” or both.

Example:  <any word> working <any word>

^.*(?=.*reporting 2.0)(?=.*working).*$

Documents that contain both “reporting 2.0” and “working” in any order. Either or none doesn't work.

Example: <any_word> working reporting 2.0 <any_word> OR <any_word> reporting 2.0 working <any_word>

(.*?)reporting 2.0(.*)(?=working).*$

Documents in which "reporting 2.0" comes first, followed by "working".

Example: <any_word> reporting 2.0 <any_word> working

^.*(?i)(Broadway|Organizational Units).*$

An OR condition.

Example<any_word> broadway <any_word> and <any_word> organizational <any_word>


Documents that contain "language" and one or all of the 3 keywords: "disable", "remove", or "deactivate."

Example: <any_word> language <any_word> disable


"Language" must be present. Other keywords in search query must contain at least one of three keywords: "enable", "add", "activate", or "install." Two keywords must be separated by at least one character.

Example<any_word> Enable language <any_word>


Documents that contain either "upgrade" or "1297" along with either "instance" or "cdm".

Example<any_word> 1297 cdm <any_word> 

(.*?)CENG([-])([1-9][0-9]*).*$ (.*?)([*])Version([#])([1-9][0-9]*).*$

"CENG" is followed by hyphen followed by numeric digits.

Example<any_word> CENG-123 <any_word> 

RelatedUse Regex in Keyword Boosting to Handle Query Inflexion

Import Tuning

Keyword boosting is a time-consuming affair. An admin analyzes search behavior and organizational goals before curating a list of results to boost. During the course of a few months or years, the admin can end up boosting hundreds of documents on a search client. Great as it is for end users, without Import Tuning the entire thing can turn into a maintenance nightmare if the Moderator, Admin, or Super Admin has to boost exactly the same documents on another search client.

When a content source is linked with multiple search clients, then an instance user can copy the keyword tuning settings from one search client to another.

Example 1. When keyword boost settings can be imported.

An article with the title "Unable to Login" has been boosted for the keyword login for rank one on search client . The same article is boosted for the keyword unable on the search client to rank two. On import, the article will be boosted for two different keywords for two separate ranks.

Example 2. When keyword boost settings cannot be imported.

An article with the title "Unable to Login" has been boosted for the keyword login for rank one on search client and for the rank two on the same search client. You cannot import boost settings in this case.

Import Tuning saves a lot of repetitive work. It works excellently for content sources shared between two or more search clients. With the theory clear, you can now proceed to import keyword-tuning settings from one search client into another.

  1. Click Import Boosting.

  2. From Select Search Client, pick a search client from which tuning settings will be imported. A search client named "Keyword Tuning" has been selected in the image.

  3. In the Select column, check the content sources and content types. In the image, the tuning settings applied on the documents stored in the content source StackOverflow with Tags and content type Question will be imported.

  4. Click Import.

Boosted Documents Tab

Synonyms Boost

Boosted Documents offers a featured called Apply the same Keyword Tuning on the added Synonyms/Abbreviations.

Checking it extends the scope of keyword boosting to its synonyms. A document boosted for a keyword, let's say, SU, and it's boosted for all its added synonyms, such as searchunify and sfy.


Imagine a situation where 3 documents have been boosted for the query SU, 7 documents for the query searchunify and 4 documents for the query sfy.

In this case, searching for SU will bring more results from searchunify because it has the most documents.

When there is a parity between two synonyms, the results for a synonym are picked at random.

Also, when the query and the boosted keyword match is partial, then the keyword synonyms are ignored.

For the synonym boost to work, a precondition is to use a string instead of a regex pattern. Keyword boosting a document for the pattern Search* will not be automatically boosted for synonyms such as SearchUnify and SU.

Boosted Documents

The list of boosted documents can quickly spiral into a maintenance nightmare. In such scenarios, instance users can resort to Boosted Documents where they can look up boosted documents, change their rank, and add more keyword to the boosting.

The tab features a list of docs (column Document) along with the keyword(s) (column Search Keyword) for which they are boosted, and the boosted rank (column Rank).

You can remove a boosting with the delete button in column Action.

When Bypass All Filters is checked, keyword and intent tuning are force applied irrespective of the selected filters.

After making the changes, click Compare & Save and then Apply Changes.

Boosted Queries

This tab features a list of keywords for which one or more documents have been boosted.

The tab features a list of keywords (column Search Keyword) and the documents boosted for that keyword (column Document). The Document column names the Content Source and Content Type where the document is stored. The rank for which the docs are boosted is in the column Rank.

You can remove a boosting with the delete button in column Action.

When Bypass All Filters is checked, keyword and intent tuning are force applied irrespective of the selected filters.

After making the changes, click Compare & Save and then Apply Changes.

Compare and Save

You can review the impact of tuning before applying Keyword Tuning to production. Check out Compare and Save Manual Tuning Configurations. To save tuning settings, it's necessary to click Compare and Save.

Apply Bypass Formula

The search box can be influenced by the keyword and intent tuning you have already employed, which is great for end-users but not when you are trying to tune results. To negate the impact of tuning and view all results, toggle on Apply Bypass Formula. Turning it on allows admins to see all the results for a search query irrespective of the current tuning settings.

Top Search Queries with Unranked Result

This report is right next to Export Tuning and contains suggestions documents that can be boosted. Click to open it.

The report presents a list of documents (Clicked Results) which users find useful (measured by the number of clicks in #Clicked) but which are buried deep inside search results (captured in Avg. Click Position).

Example: Assume that users clicked "Linux server file-based projection job reports" 18 times. Each time the users navigated beyond page one. A way to improve user experience is to boost the document from Action for the keyword listed in Search Query.

In the dialog that opens, assign the document a rank. You can boost up to 10 documents for a keyword. When you try to boost the 11th document, an error appears: "Top 10 results for this query are already boosted. Kindly, unrank one of those to be able to boost this result." 

Once a document has been boosted, its status changes from "Boost" to "Boosted" in Action.

You cannot assign two documents the same rank but you can assign a document the same rank for more than one keywords.

Last updatedTuesday, February 6, 2024

Or, send us your review at