Search displays least relevant search results first

Created on 11 April 2025, 15 days ago

Problem/Motivation

The civictheme_search view ships with a sort by "Relevance" in ascending order, causing search results to be provided with least relevant first. It should be in descending order (most relevant first).

Steps to reproduce

  1. "Boost" the Title field at /admin/config/search/search-api/index/civictheme_content/fields by increasing the boost value above 1
  2. Create at least two uniquely named pages
  3. Search for the title of one of those pages at /search

Expected: Page is first in the results
Actual: Page is last in the results

Proposed resolution

Simple config change

Remaining tasks

Possibly an update hook to fix this for existing sites

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jdleonard Austin, TX, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024