Appearance
Search
On the Search page, you can administer the details of the Relewise search engine. This allows for greater flexibility in defining terms that hold particular significance, or weeding out results that are undesirable.
Search Overview
Use Live View on the Search Overview to check which search terms and filters are included in a request and which results Relewise returns. Open a request's details to inspect its JSON.
When troubleshooting merchandising, expand Context Values under Input to check the effective request values, including batch defaults and overrides.
For batched searches, expand Batch (n requests) to inspect the requests sent together.
See the Live View guide if a request does not appear.
Synonyms
The Synonyms interface allows you to create One-way or multidirectional synonyms in My Relewise.
Synonyms are used to link two or more search terms together, to help aim the end user toward more optimal search results.
To learn more about Synonyms and how they work, click here.
To learn how to create synonyms, refer to our how-to guide.

A multidirectional synonym that points between "Wireless" and "bluetooth".
A Note on Synonyms
Be aware that Synonyms cannot contain spaces. This means that "open" compound words (such as "Dog Collar") cannot be entered as a valid term in a synonym rule.
For more information, please see our FAQ
Redirects
Redirects are used to return a predefined output in the form of a string when a given search term is sent. Redirects are created as overarching rules, and can be used to guide the user to a particular PDP or content page depending on the user's search request. The redirect itself is not a physical redirect to a given page, but rather a collection of redirect locations that is included in the SearchResponse. The redirect output has to be consumed by the website or server that requested it, whereupon the consumer enacts the appropriate action for the redirect. This could come in the form of an actual redirect in the browser, or some kind of UI element such as a button that points the user toward a certain page instead.
json
"redirects": [
{
"id": "ae78c3aa-e386-4b3d-b072-4dd85d5efad0",
"condition": {
"kind": "Contains",
"value": "opening hours",
},
"destination": "/page/opening-hours"
}
],Example of a redirect in the search results
Redirects are furthermore flexible in that they allow identification of search terms that equal, contain, start with or end with a chosen term, meaning that rules can be made to be as diverse and broad as you need them to be.
Stemming
Stemming is used to define the shared root of words, and thus help broaden user searches by smartly interpreting ambiguous search terms. The Relewise search engine comes pre-built with many of these stems, but you can use this feature to ensure that particular cases that are important to your content are treated correctly.
For instance, fly is the root of flyer, flying, flies, flew, flown, etc. To ensure that any variation of the word "fly" end up on the same, correct page, you can add them to a stem list, and set the root word for them all.
Stemming can also be used to undo or avoid stemming, in the case that a word needs to be treated as its own entity rather than a stem. For instance, if you do not want runner to be stemmed down to run, you can use the Stemming rules in Relewise to identify runner as its own word. Thus, if a user searches for running, they will find hits for the word run, but if they search for runner they will return hits for that instead.

An example of a stemming rule
Decompounding
Decompounding is a way for the search engine to handle compound words, such as "flowerpot" or "doghouse". This is particularly important for languages that combine compound words into a single word, such as Danish or German. Decompounding lets you control how words are broken down, and helps improve the discoverability of entities on your page.
Compound words are made up of a Head that defines what type of item it is; search engine is an engine, and doghouse is a house. On top of the Head sits the Modifiers, such as search or dog. A Head can easily have several Modifiers. Although uncommon in English, many Germanic languages (e.g., German, Danish, Dutch) create new words by compounding several others. In this case, each added word needs to be specified as a Modifier to the Head, to ensure that the decompounding feature registers them correctly.
Example of decompounding a word in My Relewise
The English word "doghouse" contains the Head, house, and the Modifier, dog. By decompounding this word, Relewise is able to serve accurate search results to queries about "house for dogs".

An example of a Head with a single Modifier
The decompounding feature functions by defining the Head of a given word, and then assigning one or more Modifiers to it. During a search, the algorithm actively checks the search term from back to front for potential Heads, and attempts to identify them as individual terms. This allows for greater parsing of 'natural language' searches.
Automated Decompounding
Relewise attempts to automatically create decompounding rules, in order to avoid having to create manual rules. This is done by analyzing the dataset and identifying the preexisting whitelisted words ("atoms") contained therein. Once Relewise has this list of words, we are able to decompound words that contain these atoms into their constituent part.
The automatic decompounding logic
If a dataset contains the individual words "dog" and "house", Relewise will identify these as existing atoms. If the dataset furthermore contains the word "doghouse", Relewise knows to decompound the word into its constituent parts automatically.
Preventing Decompounding
The decompounding feature in Relewise can also help maintain compound words, in case the search function has erroneously split them up. In the case of boxershorts, you might not want the engine to treat them as shorts, since they are technically underwear. As such, you can inform the machine that this is one word and one word only, and thus prevent inaccurate matches in the search results. To prevent the innate decompounding engine in Relewise from splitting a word into its constituent parts, simply specify the word in the 'for word' section of the decompounding rule, and leave the 'Head' and 'Modifiers' fields blank.
Search Term Modifiers
Read more about Search Term Modifiers here
Search Term Modifiers are a way for you to affect the way search queries are handled by the search engine in Relewise. Specifically, this lets you create modifiers for certain inputs, to either append to the term, remove from the term, add a word to the term, or replace the term altogether.
This is useful if you need to guide users toward more specific queries; for instance, "jorts" is a colloquial name for "jean shorts", but Relewise is unlikely to know this. By specifying a Search Term Modifier for jorts, you may present your users with results for jean shorts or denim shorts (or both) instead.
Use With Caution!
Be aware that these rules are very powerful, and may have unintended side-effects if applied carelessly. Ensure that you are making the correct differentiation between "equals" and "contains", for instance, since an incorrectly applied filter could result in the rule affecting otherwise healthy search queries.
Example of a Search Term Modifier

This rule ensures that searching for "jorts" returns results for "jean shorts" instead.
Search Result Modifiers
Read more about Search Result Modifiers here
Search Result Modifiers allow you to modify the search results of a given term before it is returned to you. This lets you, for instance, remove all search results that do not match a given category or brand.
You can read more about Search Result Modifiers, and how to use them, here.
Use With Caution!
Be aware that these rules are very powerful, and may have unintended side-effects if applied carelessly. Ensure that you are making the correct differentiation between "equals" and "contains", for instance, since an incorrectly applied filter could result in the rule affecting otherwise healthy search results.
Example of a Search Result Modifier

This rule ensures that searching for "stretch jeans" only returns results where the product contains the tag "stretch".
