[PR #5991] feat(admin): implement multi-field search with customizable search mode #14613

Closed
opened 2026-04-13 09:32:32 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5991

State: closed
Merged: No


https://github.com/better-auth/better-auth/issues/5990

Summary by cubic

Implemented multi-field search in admin.listUsers with a configurable OR/AND mode to improve user discovery across multiple fields.

  • New Features
    • Added searchInFields to search across multiple fields when searchField is not provided; accepts an array or a comma-separated string.
    • Added searchMode with "OR" (default) or "AND" to combine matches across fields.
    • Defaults: fields ["email"] and operator "contains".
    • Updated docs and added tests covering OR default and AND behavior.

Written for commit 07ad83fa1f. Summary will update automatically on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5991 **State:** closed **Merged:** No --- https://github.com/better-auth/better-auth/issues/5990 <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Implemented multi-field search in admin.listUsers with a configurable OR/AND mode to improve user discovery across multiple fields. - **New Features** - Added searchInFields to search across multiple fields when searchField is not provided; accepts an array or a comma-separated string. - Added searchMode with "OR" (default) or "AND" to combine matches across fields. - Defaults: fields ["email"] and operator "contains". - Updated docs and added tests covering OR default and AND behavior. <sup>Written for commit 07ad83fa1f4510f920f515c237ce78a68ec6beec. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:32:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#14613