How Search Result Ordering and Distance Sorting Work

Link: https://support.brilliantdirectories.com/support/solutions/articles/5000662041

Overview


The following explains three search result behaviors that are commonly misunderstood. Each section describes how the system is designed to work and why.


1 — Searching by State, Country, or Region Does Not Produce Distance-Sorted Results


When a visitor searches using a state, country, province, or county name, for example, "Texas," "California," or "United Kingdom", the system does not sort results by distance. This is by design. 


Distance sorting only activates when the searched location resolves to a specific point on a map, such as a city name, zip code, postal code, or street address. These location types have a precise latitude and longitude coordinate, which the system uses as the reference point for calculating member distances.


⚠ NOTE — If Distance Sorting Is Not Appearing for City or Zip Code Searches: If distance is not calculating correctly even when a specific city or zip code is searched, verify that the members in the results have been geocoded. Members without geocoded coordinates will not have distance values and will not sort correctly by distance, regardless of the location searched. Reference: How To Geocode Members 


2 — Results Are Sorted by Distance from the Searched Location, Not the Visitor's Physical Location

When a visitor searches for a location, the system returns members sorted by their proximity to the searched location, not by their proximity to the visitor's current physical position.


For example, a visitor located in Chicago who searches for "90210" will see members sorted by their distance from the Beverly Hills area, not from Chicago. This is the intended behavior.


This design allows a visitor to search for businesses or listings near a hotel, a client's office, or any location other than their own. Sorting by the visitor's physical location instead would make location-based searching impractical for any use case where the visitor and the searched area are not in the same place.


3 — Members on Higher-Priority Plans with Service Areas Can Rank Ahead of Geographically Closer Members


When a Membership Plan is configured to allow members to select service areas, those members will appear in search results for their selected service area locations regardless of where they are physically located. If that plan also carries a higher search result priority than another plan on the site, its members will rank above geographically closer members on the lower-priority plan. 


Example: A member physically located in California and New York, as a selected service area. This member will appear in the New York search results. If that member's plan has a higher search priority than a member who is physically located in New York on a lower-tier plan, the California-based member will rank above them.


This behavior is the result of two deliberate configuration choices on the site:

  1. The Membership Plan has service area selection enabled.
  2. The Membership Plan has a higher search result priority than the plan being outranked.