Skip to content

Improving search

Result rules and redirects

On this page

With result rules you curate the results of chosen searches yourself: you show certain products first, hide products and show a banner above the results. A redirect sends a search straight to a page instead of showing results.

Both are set on a site's Search & relevance tab, in the Result rules and Redirects sections. As with all search settings, you save with Save changes, and a change applies to the very next search.

Result rules

The Result rules section of Northline Outdoor, with a rule for "rain jacket" that shows two jackets first, hides one jacket and shows an autumn sale banner, and a rule for "gift card"

A rule fires on certain searches and changes their results. As long as there is no rule, results are ordered purely by relevance. Above the list, the Rules for search results card shows three examples of typical rules.

Adding a rule

  1. Open Sites > Northline Outdoor > Search & relevance and pick the Result rules section.
  2. Click Add a rule.
  3. Fill in the fields you need. They are described below.
  4. Click Save changes.

To delete a rule, click the cross to its right and save. A rule without a search term, filter, products or banner is dropped when you save. A site can have up to 50 rules.

The fields of a rule

Field What to enter
When someone searches for The word or words the rule fires on, for example rain jacket. The rule fires on every search that contains these characters, whatever their capitals, so also on "Rain jackets" and "womens rain jacket". With Only this exact term it fires on exactly this term only. Leave it empty to apply the rule to every search.
Only with this filter and Filter value Optional. The rule then applies only while this filter is active, for example on a category page. See Rules for a filter.
Language Only on a site with languages: Every language, or the one language the rule fires in. On a site with only one language, the rule fires on every search.
Show first (product IDs) The products to show first, separated by commas, in the order they should appear.
Hide (product IDs) The products that should not appear for this search, separated by commas.
Banner text Optional. A short message your shop can show above the results, for example about a sale.

Under When someone searches for, a short sentence confirms what the rule applies to. When the field is empty, it reads "Empty: this rule applies to every search."

As soon as a search term is entered, the Only this exact term checkbox appears below it. Tick it when the term is part of longer searches the rule should not fire on: a rule for headphones with this box ticked shows its headphones first for "headphones", but not for "headphones amplifier" or "headphones cable".

Show first and Hide each take up to 50 products.

Product IDs

You name products by their ID, the identifier your shop sends the product to Searcio with. With the WordPress plugin, it is the post type and the WordPress ID, joined by a hyphen, such as product-553. How to find the ID in WordPress is described in the plugin guide.

  • Spaces around the commas do not matter.
  • An ID that is not in your catalogue is skipped.

Which rule applies

  • Every rule that fits a search applies, and Searcio combines them from top to bottom:
    • A product that any of them hides stays hidden.
    • The products to show first come in the order of the rules: those of a higher rule before those of a lower one.
    • The banner of the first rule that has one is shown.
  • A new rule is added at the bottom. Rules cannot be moved. To change their order, delete rules and add them again in the order you want.
  • A rule for jacket also fires on "rain jacket". Put the more specific rule higher, so its products come first, or let the general one apply to Only this exact term.
  • A rule with an empty search term fits every search. It is the way to hide a product everywhere, and it applies together with each search's own rules.
  • The rule checks what the visitor typed. A rule for rain jacket does not fire on the search "hardshell", even when that search finds rain jackets through a synonym.

How the products of a rule work:

  • Products under Show first are at the very top of the first page of results, even when they do not contain the searched word themselves. A product that does not match the visitor's chosen filters or language is not brought to the top.
  • They also come before results that personalized ranking moves up.
  • A product that a rule both shows first and hides stays hidden.

Rules for a filter

A rule with Only with this filter fires only when the results are narrowed to the Filter value. That is the case when a visitor picks, for example, the Rain jackets category in the search window, or for a category listing your shop fetches from Searcio.

  • You can pick from your site's facet fields. With No filter, the rule applies whatever the filters.
  • The Filter value field can only be edited once a filter is picked.
  • Write the filter value exactly as it is in your content, capitals included, for example Rain jackets.
  • When the rule also has a search term, both must fit. Without a search term, it applies to every request with this filter value.

A category page that your shop draws itself, without asking Searcio, cannot be changed by a rule.

Examples of rules

Showing a bestselling rain jacket first

Northline Outdoor wants the bestselling jacket to come first in a search for rain jackets, followed by a second one, and shoppers to see the autumn sale.

  1. In the Result rules section, click Add a rule.
  2. Under When someone searches for, enter rain jacket.
  3. Under Show first (product IDs), enter the IDs of the two jackets, the bestseller first, in this example p-1112, p-1105.
  4. Under Banner text, enter Autumn sale: 20% off selected rain jackets.
  5. Click Save changes.

The rule also fires on "rain jackets" or "rain jacket women", because these searches contain "rain jacket".

Hiding a sold-out product

A jacket is sold out and will not be back before spring. Until then, it should not appear in any search.

  1. Click Add a rule and leave When someone searches for empty.
  2. Under Hide (product IDs), enter the jacket's ID, in this example p-1126.
  3. Click Save changes.

The rule applies to every search, together with the other rules, so the jacket also stays hidden when someone searches for rain jacket. When it is back in stock, delete the rule.

Search redirects

The Redirects section of Northline Outdoor: "delivery" leads to the delivery and returns page, "size guide" to the size guide

A redirect sends visitors who search for a certain term straight to a page instead of showing results. This is useful for searches where a list of products is the wrong answer: delivery, returns, a size guide, a promo code or a support phone number.

  1. On the Search & relevance tab, pick the Redirects section.
  2. Click Add a redirect.
  3. Enter the term under Search term (exact match) and the destination under Destination URL.
  4. On a site with languages, pick the language the redirect is for, or keep Every language. This way "versand" can lead to the German shipping page and the same word on the English pages to the English one.
  5. Click Save changes.

How a redirect works:

  • The destination is a full address that starts with https://, or a path on your site that starts with /, such as /delivery-and-returns. The dashboard does not accept any other destination and says "A destination must start with https:// or /."
  • The term must match exactly. Capital letters and spaces at the start and end do not matter, but delivery does not fire on "delivery costs". Add a redirect of its own for each common variant.
  • A redirect comes before any result rule.
  • A redirected search does not count towards the searches of your plan.
  • A row without a term or without a destination is dropped when you save. A site can have up to 50 redirects.

Example: sending "delivery" to the delivery page

  1. Click Add a redirect.
  2. Enter delivery as the search term, and https://www.northline-outdoor.co.uk/delivery-and-returns as the destination, or simply /delivery-and-returns.
  3. Add delivery costs and shipping the same way, with the same destination.
  4. Click Save changes.

Anyone who now searches for "Delivery" lands straight on the delivery and returns page.