Skip to main contentSkip to footer

This update adds just one new feature, but since it involves a database update, it’s a major version. The new feature adds a session ID to the search logs. The main reason for this is to eliminate duplicate log entries from live searches.

Users of Live Ajax Search have noticed their logs filling up with partial words. If someone searches for “search”, it may get logged as “sea”, “sear”, “searc”, and finally “search” because previously, Relevanssi couldn’t tell these searches were all from the same user.

Now, with the session ID, Relevanssi can tell these are from the same user and can delete the shorter searches, leaving only the final search term in the log. The session ID is based on the user ID for logged-in users and the HTTP user agent for the other users, combined with a 10-minute time window (so the same user will get a new session ID every ten minutes).

If you find this feature interesting, please let me know what you think of it. It’s something of a work-in-progress, so I’m interested in hearing your thoughts and any suggestions for improvement.

2.20 / 4.19

  • New feature: Logging now includes a session ID (based on user ID for logged-in users, HTTP user agent for others, and current time, stable for 10 minutes per user). This removes duplicate searches from live searches, keeping only the final search query.
  • Premium. Minor fix: The pin weights did not appear in the classic editor Relevanssi metabox, despite being stored in the database.

Your account

Not logged in. Log in to see your license details.

Search

Popular Resources

Search shortcode

Relevanssi adds a shortcode to help making links to search results. That way users can easily find more information about a given subject from your blog. The syntax is simple: John Doe This will make the text John Doe a link to search results for John Doe. In case you…

Related searches feature
John Blackbourn wrote a cool related searches feature for Relevanssi Premium. It’s included from version 1.7.4. In order to use…
WooCommerce: Hidden products in search

Relevanssi by default shows out-of-stock and excluded from catalogue WooCommerce products in the search results, but hides those set to excluded from search (before 2.2.2 and 4.1.2 the default behaviour was to show all products). It is quite easy to make Relevanssi not display hidden products in the results. The…

Related Posts:

Currently there are no related posts available.

Comment Section:

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed