Using Priority values to order search results

Promoting stores to the top (or bottom) of search results and other tricks

Tip: You can define the order of Priority values in Settings > General > Results options. 'Descending' (default) means higher Priority values are displayed above lower Priority values (4,3,2,1...). 'Ascending' means lower Priority values are displayed above higher Priority values (1,2,3,4...).
You might also be interested in...

Guide to using icons

Tags and search filtering

Using CSS to style your store locator

Letting others add and edit store locations

Promoting stores

A common requirement when creating a store locator is the ability to define the relative importance of stores. By default when you do a search the stores are ranked according to distance, with the nearest location appearing at the top. But what happens if you want to promote certain stores so they appear at the top of the results (a bit like a sponsored ad in search results)?


Using Priority to affect the ordering of results

That's where Priority values come in! Put simply, any given set of results are ranked first by Priority, and second by Distance. So imagine, for example, someone uses your locator to search for the five nearest stores to San Francisco. The nearest store, Andrea's, is 1.3 miles away, so it appears at the top, followed by the second nearest store, Bella's, at 1.9 miles away etc (see Example 1 below).

Results orderDistance from San Francisco
Andrea's store1.3 miles
Bella's store1.9 miles
Clarissa's store2.8 miles
Diana's store4.2 miles
Elaine's store8.0 miles
Example 1: Search results ranked by distance


But you then set up a deal to promote a certain retailer (Clarissa's store) and want it to appear first in the results, even when it isn't the nearest. Achieving this is very simple - for any stores you want to elevate to the top the results you give them a Priority value. If you upload your data via a spreadsheet then you enter the values in the Priority column. Or, if you edit your stores online, then you fill in the Priority field (click the Show all fields button if you can't see the Priority field) as shown below.

Setting priority value in the online store editor
In our example we assign Clarissa's store a Priority of 1. Now, doing the same search for San Francisco would see the Clarissa's store appear at the top, above Andrea's store and Bella's store, despite being 2.8 miles away (see Example 2 below).

Results orderDistance from San FranciscoPriority value
Clarissa's store2.8 miles1
Andrea's store1.3 miles
Bella's store1.9 miles
Diana's store4.2 miles
Elaine's store8.0 miles
Example 2: Store with Priority value appears at top despite not being nearest


The power of Priority values doesn't stop there though, as you can define multiple levels of importance. Say you have three types of store, As, Bs and Cs. You want the As to appear first, followed by the Bs and lastly the Cs. To set this up you could assign all A stores a Priority of 3, all B stores a Priority of 2, and all C stores a Priority of 1 (or leave them blank). Clarissa's store is type A so is given a Priority value of 3. Andrea's store is a type B and gets assigned a 2. Returning to our search for San Francisco, of the top five nearest stores any Priority 3s (e.g. Clarissa's store) would appear at the top , followed by the Priority 2s, followed by the Priority 1s (see Example 3).

Results orderDistance from San FranciscoPriority value
Clarissa's store2.8 miles3
Andrea's store1.3 miles2
Bella's store1.9 miles1
Diana's store4.2 miles1
Elaine's store8.0 miles1
Example 3: Search results are ranked by priority, then distance


Typically most situations require only one or two different Priority levels, but you can assign up to 998 levels if required to help fine tune your results. Also, if you prefer, you can reverse the ranking direction. By default Priority values are ordered Highest to Lowest (Descending) but you can switch that to be Lowest to Highest (Ascending). This is available in Settings > General > Results options ("Order of Priority values").

You can also set a maximum radius for Priority values to be considered in Settings > General > Results options called "Maximum radius around search focus that Priority values influence results". For example if you set a value of 20 miles, the Priority value of any store more than 20 miles from the search location will be ignored, and it will be treated like a 'normal' store.


Styling results based on priority

It's possible to make stores with a Priority value stand out visually by defining a different background color from normal results. This color is defined in Settings > Styling ("Priority store background color").

Advanced users with a good understanding of CSS can even alter the styling of results based on individual Priority values. Each result is assigned a class name based on its Priority value (e.g. store results with a Priority of 2 have a class name of priority_2). In Settings > Styling you can define these classes in the custom CSS section. For example...

.priority_2 .storename {font-size:20px}
... means that the store name for any stores with a Priority of 2 will have a font size of 20 pixels.


Making stores appear in *every* search

In the above scenarios store locations are ranked by Priority for any given set of results, but overall that set of results is still based on distance. What about if you want a store to always appear in the results, regardless of where the user searches for? Easy! If you assign a Priority value of 999 or above that store will always appear in the list of results. Online-only stores for example are assigned a Priority of 999, but the technique can be applied to any store.

You can even determine the relative order of these "always displayed" locations just like you can with normal stores - a Priority value of 1000 will appear above a Priority value of 999; likewise a 1004 would appear above a 1000. Confused yet?


Increasing a store's spatial influence

Blipstar has another trick up its sleeve for affecting search results - a store's Radius value. This technique is best used when doing a radius search (e.g. finding stores with 10 miles of the search location).

Essentially you can define a Radius for an individual store that impacts whether it's included in any given distance-based search. Setting a Radius value of 25 means that any search location within 25 miles of that store will cause the store to appear in the results, regardless of the search distance radius.

So let's imagine we set the Radius value of Clarissa's Store to be 40 miles. The user conducts a search to return stores within 10 miles of Palo Alto, CA. Clarissa's store is 32 miles from Palo Alto (so outside the 10 mile search limit) and normally would not appear in the results. But because Palo Alto is within the store's radius value of 40 miles, Clarissa's store gets included in the results. This example is illustrated below:

Using a store's Radius value to increase its spatial influence
In effect we've increased the store's "spatial influence". If it takes a while to get your head around the concept, you're not alone! As a rule of thumb, the bigger a store's Radius value the more search results it will appear in.

How do you actually enter store Radius values? The process is similar to Priority values - you can either enter them in a column of your spreadsheet called Radius, or if editing online via the Radius field.


Getting your priorities right

In this tutorial on store locator results we've learned how to:

  • assign different Priority values to promote certain stores in search results;
  • feature certain stores in EVERY set of results, regardless of distance;
  • use a store's Radius value to increase its spatial influence.

If you have any issues in setting up your Priority values just drop us an email and we'll be happy to provide assistance.

Providing store locator solutions since 2006.   Share: Linkedin  |  Twitter  |  Google+  |  Facebook  |  Pinterest