Partial Search in Drupal Core

Created on 15 December 2006, about 18 years ago
Updated 24 December 2021, about 3 years ago

Updated: Comment #142

Problem/Motivation

Search is working, but I noticed that it doesn't pick up on partial words. For example, if you search on 'quake' you would expect to get back results containing the term 'earthquakes' but there are no results.

This behavior is also the case with plurals: Searching on 'engineer' when a node only includes 'engineers' will not return that node in the results. It is pretty standard searching behaviour for people to omit plurals and expect to see them in results. For example, searching on 'engineer' should return:

engineers
engineering
engineer's

Proposed resolution

Implement N-Gram searches, see comment #56

Remaining tasks

Decide if this belongs in core or contrib, see comments #81 and #93

User interface changes

TBC

API changes

TBC

Feature request
Status

Needs work

Version

11.0 🔥

Component
Search 

Last updated 13 days ago

Created by

🇺🇸United States augustd

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs change record

    A change record needs to be drafted before an issue is committed. Note: Change records used to be called change notifications.

  • Needs product manager review

    It is used to alert the product manager core committer(s) that an issue represents a significant new feature, UI change, or change to the "user experience" of Drupal, and their signoff is needed. If an issue significantly affects the usability of Drupal, use Needs usability review instead (see the governance policy draft for more information).

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024