Note: You are viewing the documentation for Version 4View Version 3 Docs


Since: 4.0.0

Table of Contents

Control whether exact matches are given extra relevance weight when performing partial match logic.


Type Parameter Default Since
Boolean $enabled true 4.0.0
Array $args
Key Type Value
tokens String[] Tokens for this search
query \SearchWP\Query The Query taking place


All hooks should be added to your custom SearchWP Customizations Plugin.

Disable exact match buoy

// Disable SearchWP's exact match buoy when performing partial match logic.
add_filter( 'searchwp\query\partial_matches\buoy', '__return_false' );

How to use this code

Fix keyword search on your site. No coding required!

Now you can utilize all of the content that's gone unrecognized by native WordPress keyword search instantly with SearchWP

Get SearchWP