Keyword Tuning is a powerful tool that can be used to change the rank of a document for a query or a related set of queries.
Boost for Query (Precise)
You can be precise with it, so that document X is boosted only for add checkbox
.
In this case, the X may or may not turn up for related queries, such as adding
checkbox
or add checkboxes
.
Boost for Query Forms (Comprehensive)
Alternatively, you can choose to be comprehensive and use a regular expression to boost document X for all the forms of add checkbox
, so that someone looking for adding checkbox
or add checkboxes
also gets document X on top.
Regex patterns are extremely useful in languages such as Polish and Russian where nouns declensions are aplenty. They are also a useful tool for Spanish, French, and other languages with complex verb conjugations. You can handle these and other inflexions with regular expressions.
SearchUnify Compatible Regular Expression Syntax
Operator | Definition | Example |
---|---|---|
. | Match any character. | reali.ze = realize, realise |
? | Match the preceding character 0 or 1 times. | seas? = sea, seas |
+ | Repeat the preceding character 1 or more times. | 123+ = 1233, 12333, 123333... |
* | Repeat the preceding character 0 or more times. | 123* = 123, 1233, 12333, 123333... |
{} | Repetition range for the preceding character. | great{1,5} = great, greatt, greattt, greatttt, greattttt |
| | OR operator | reali[s|z]e = realize, realize |
() | Form a group. | extension (0175)|(0172) = extension 0175, extension 0172 |
[] | Match any character or group between the square brackets. | ID[0-9] = ID0, ID1, ID2... ID9 |
- | Range to be used with square brackets. | [a-zA-Z]{2,4} = All words of length 2, 3, or 4. |
^ | Negation. To be used with square brackets. | [^0-9]{10} = Don't match 10-digit numbers, such as 9876323472. |
Instructions
- Log in to the instance, find Search Tuning, and click Keyword Tuning.
- Select your search client.
- Find the document to be boosted and click Add Keywords.
- Enter a query to boost a document for a keyword or phrase. Or enter a regular expression to boost a document for a query and all its nouns, verbs (tenses), and other variations.
- Click Save.
Official Documentation: Boost Documents for Specific Keywords
Comments
3 comments
Another question: Is it possible to use regex to account for the order of the words in the search? To use your example, would there be a way to also capture "checkbox adding"?
Please sign in to leave a comment.