Continue reading Debugging indexing problems

Debugging indexing problems

The easiest way to debug indexing problems is to use the WP CLI tools available in Relevanssi Premium. To see how Relevanssi sees the post 123, just use the following command on the command line: This will print out how Relevanssi sees the post, how it appears in the different steps of the indexing process…

Read more Debugging indexing problems 0 Comment on Debugging indexing problems
Continue reading Pinning and exclusion doesn’t work for custom post types in Gutenberg

Pinning and exclusion doesn’t work for custom post types in Gutenberg

Sometimes when you try to access the pinning or the exclusion settings for a custom post type post in the Relevanssi Gutenberg sidebar, you come across this error message: If you copy the error, the relevant beginning will look like this: Error: An error occurred while running ‘mapSelect’: Cannot read property ‘_relevanssi_pin_keywords’ of undefined The…

Read more Pinning and exclusion doesn’t work for custom post types in Gutenberg 0 Comment on Pinning and exclusion doesn’t work for custom post types in Gutenberg
Continue reading Premium 2.7 / Free 4.6

Premium 2.7 / Free 4.6

The main reason to release this new version is to fix a major problem with WordPress 4.9 compatibility. I strongly recommend moving on to WordPress 5 (and Classic Editor, if necessary), but this version removes the problem. Since there were couple of changes in Relevanssi behaviour included as well, this is a minor update and…

Read more Premium 2.7 / Free 4.6 0 Comment on Premium 2.7 / Free 4.6
Continue reading Sorting the posts by Wishlist Member membership levels

Sorting the posts by Wishlist Member membership levels

Someone wanted a way to prioritize posts that are targeting particular Wishlist Member membership level. The basic implementation here is simple: create a relevanssi_hits_filter function that will sort the posts by the level. More information about relevanssi_hits_filter. There’s a trick to this, though, as Wishlist Member does not provide a way to check the level…

Read more Sorting the posts by Wishlist Member membership levels 0 Comment on Sorting the posts by Wishlist Member membership levels
Continue reading Premium 2.6 / Free 4.5

Premium 2.6 / Free 4.5

The new versions include couple of new filter hooks that are not of big interest to most users, but may be helpful for specific needs. The biggest change in this version is how the stopwords page works: now it is possible to remove all stopwords without having the stopword list automatically repopulate from the default…

Read more Premium 2.6 / Free 4.5 5 Comments on Premium 2.6 / Free 4.5
Continue reading Partial matches to just one custom field

Partial matches to just one custom field

Is it possible to set (with filters and/or actions/functions) Relevanssi to use whole words keyword matching for post titles and 2 custom fields, and partial keyword matching only for a specific custom field (sku in this case)? Indeed it is! That is, you can’t set different keyword matching methods to different parts of the post,…

Read more Partial matches to just one custom field 0 Comment on Partial matches to just one custom field
Continue reading Excluding old content from the search

Excluding old content from the search

Is there a way to exclude anything before 2016 from search results? Yes. There are two approaches to this. If you never want to see anything old in the results, it’s best to filter in indexing. Add this to your theme functions.php. If, on the other hand, you only want to apply this filter in…

Read more Excluding old content from the search 0 Comment on Excluding old content from the search
Continue reading Premium 2.5 / Free 4.4

Premium 2.5 / Free 4.4

Relevanssi Premium 2.5.0 and Relevanssi 4.4.0 add new features and fix bugs in Relevanssi. Premium gets more updates this time, but the free version gets couple of helpful bug fixes, so this version is definitely worth the update. Versions 2.5.1 and 4.4.1 are a quick fix for a problem with missing stopwords in the new…

Read more Premium 2.5 / Free 4.4 0 Comment on Premium 2.5 / Free 4.4
Continue reading Restrict search by author from the search query

Restrict search by author from the search query

You can set Relevanssi to index the post author, which will then let you find posts by searching for the name of the author. But what if you want a stricter filter? Where searching for an author would only show posts by that one author, and nothing else? That’s possible too. Add this function to…

Read more Restrict search by author from the search query 0 Comment on Restrict search by author from the search query
Continue reading Premium 2.4.4 / Free 4.3.4

Premium 2.4.4 / Free 4.3.4

Premium 2.4.4 and free 4.3.4 fix couple of long-standing bugs. The process of taking Relevanssi to 100% testing coverage proceeds and going over all the code systematically helped me find and fix a bug that had plagued comment indexing for a long time. New features Premium only: You can now target specific parts of the…

Read more Premium 2.4.4 / Free 4.3.4 0 Comment on Premium 2.4.4 / Free 4.3.4