The default MediaWiki search functionality is pretty meh. WMF wikis use CirrusSearch to improve this.
https://www.mediawiki.org/wiki/Extension:CirrusSearch
The CirrusSearch extension implements searching for MediaWiki using Elasticsearch.
Checklist:
(note unticked items might need to be checked; they haven't because OP doesn't really understand their meanings).
- Passed discussion or already Wikimedia deployed
- Passed security review or already Wikimedia deployed
- Voting CI structure tests
- Runs MediaWiki-CodeSniffer
- Runs phan
- Supports MySQL, SQLite, and Postgres (if there are schema changes)
- GPL v2 or later compatible license
- Extension's default configuration provides optimal experience
- Tested with web installer
- Any relevant dependencies also bundled
(subtask of T333405)