Boolean Search
Current version: 1.4.3
SearchWP Boolean Query is a lightweight add-on that adds exclusion capabilities to your search queries. Unlike many SearchWP extensions, this one doesn’t add any settings pages or configuration screens. You simply install and activate it alongside SearchWP, and it immediately starts recognizing exclusion patterns in search queries.
How It Works
The Boolean Extension introduces support for two exclusion patterns within search queries:
Hyphen Exclusion (-word)
Any word prefixed with a hyphen (-)—without a space—will be excluded from the search results. The word is removed from the main query and added to an exclusion list.
NOT Operator (NOT word)
The keyword NOT (case-insensitive) can be used as a standalone term to exclude the word that follows it. The NOT keyword itself is removed from the search query, and the next word is treated as an exclusion.
Both methods allow users to easily refine results using natural search input.
Examples
Using the Boolean extension is straightforward—users type their search keywords normally and add exclusions using either the hyphen or NOT pattern. Words should be separated by spaces for the extension to recognize the patterns correctly.
| Search Query | Meaning |
| chocolate cake -vegan | Find “chocolate cake” but exclude “vegan” |
| laptop NOT dell | Find results for “laptop” but exclude “dell” |
| report 2026 -draft -internal | Find report 2026 and exclude both draft and internal. |
| guide NOT pdf NOT video | Find “guide” but exclude both “pdf” and “video” |
Changelog
1.4.3
- [Fix] "NOT" operator not working in some cases.
1.4.2
- [Fix] SearchWP 4 compatibility update
- [Update] Updated updater
1.4.1
- [Fix] Issue with dash handling in some cases
- [Update] Updated updater
1.4.0
- [New] Adds SearchWP 4 compatibility
- [Update] Updated updater
1.3.1
- [Update] Updated updater
1.3
- [New] Added support for NOT syntax
1.2.1
- [Fix] Fixed typo in method name
1.2
- [Improvement] Automatic updates based on your SearchWP license key
1.0
- Initial release

