Closed (fixed)
Project:
Name Field
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2016 at 13:57 UTC
Updated:
4 May 2026 at 18:15 UTC
Jump to comment: Most recent
Comments
Comment #2
slashrsm commentedComment #3
alan d. commentedCould provide a better options, but I wonder about performance:
Comment #4
bluegeek9 commentedThe name_fulltext filter already exists and searches across all components (title, given, middle, family, generational, credentials) in a single LOWER(CONCAT(...)) SQL expression:
Fulltext.php
Lines 113-121
It's wired up to the main field (not the sub-components) in name_field_views_data():
name.module
Lines 450-457
How to find it in Views: When adding a filter, look for the field labeled just "Name" (or whatever the field label is), not the sub-items like "Name: Given" or "Name: Family". The sub-component entries only get field handlers (for display columns), not filter handlers — the separate given/family filters you're seeing come from Drupal core's default Views data for the individual database columns.
The name_fulltext filter supports three operators:
Contains — substring match (spaces become % wildcards, so "John Smith" matches across components)
Contains any word — OR between words
Contains all words — AND between words
Comment #6
bluegeek9 commented