Feature: Add "Match contains" dropdown option for substring search#11
Merged
anthony-tom1 merged 3 commits intomainfrom Feb 8, 2026
Merged
Feature: Add "Match contains" dropdown option for substring search#11anthony-tom1 merged 3 commits intomainfrom
anthony-tom1 merged 3 commits intomainfrom
Conversation
- Adds a new “Contains” option to the search match dropdown (theme + i18n) - Preserves existing “match all” and “match any” word-based behavior - Implements case-insensitive substring matching for bookmarks and dbsearch backends - MongoDB uses regex-based matching; Postgres uses ILIKE - Redis backend behavior remains unchanged
- Renames the label for the match-contains option in en-US search.json
- Adds match-contains field with value "Match contains" in en-GB search.json
Pull Request Test Coverage Report for Build 21806329526Details
💛 - Coveralls |
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Files Changed
Theme:
vendor/nodebb-theme-harmony-main/templates/search.tpl
vendor/nodebb-theme-harmony-2.1.35/templates/search.tpl
Language:
public/language/en-US/search.json- en-US languagepublic/language/en-GB/search.json- en-GB languageCore:
src/search.jsPlugin (node_modules):
node_modules/nodebb-plugin-dbsearch/lib/mongo.jsnode_modules/nodebb-plugin-dbsearch/lib/postgres.jsnode_modules/nodebb-plugin-dbsearch/lib/redis.jsDescription
Feature Demo


Screenshots showing "Match contains" search in local NodeBB server.