i saw another thread where some devs were testing locally and saying it wasn’t working, but they just said they ended up resolving it and no exactly how or what the problem was.
so this is more of a general info post than a request for a fix, but basically if the database isn’t being modified on your local install, it’s (probably/likely/possibly) because relevanssi_light_launch_ajax_action
uses wp_remote_post and you likely have a self-signed certificate.
you can verify if self-signed certs are the issue by adding this somewhere, like in your functions.php:
add_action('admin_init', function() {
$remote = wp_remote_post( admin_url( 'admin-post.php' ), [] );
var_dump($remote);
return $remote;
});
you should see this printed out on your admin dashboard:
object(WP_Error)#1695 (3) { ["errors"]=> array(1) { ["http_request_failed"]=> array(1) { [0]=> string(63) "cURL error 60: SSL certificate problem: self signed certificate" } } ["error_data"]=> array(0) { } ["additional_data":protected]=> array(0) { } }
if you do, then, well…
you can directly modify the plugin file relevanssi-light.php:342
(because you’re testing locally so anything goes) and set the $args
array to also have 'sslverify' => false
.
Hello,
so if you visit /wp-admin/edit.php?post_type=shop_order and try to search for something (for example order ID or customer name), you will get no results. Everything returned to normal when I disabled this plugin.
To reproduce this issue:
Hi Mikko,
I’m trying to:
Many thanks,
]]>This plugin is perfect for my needs!
Thanks!
In Boolean Mode, how could I append a *
operator to the search string so that we can have partial matches?
Hi,
I’ve been testing Relevanssi Light today for the first time and have a few doubts about how does it display/order results.
For example, in this search: https://macmagazine.com.br/?s=guia+completo+apple+pay
I was expecting this post to be the first: https://macmagazine.com.br/post/2019/07/16/guia-completo-todos-os-cartoes-aceitos-pelo-apple-pay-no-brasil/
Which, by the way, is the one that shows up when you run the same search on our website via Google: https://www.google.com/search?q=guia%20completo%20apple%20pay+site%3Amacmagazine.com.br
Any idea why is it so far down the list?
Thanks!
]]>i already create a code that working with regular search wordpress, but how to implementing to relevanssi light? i use regular relevanssi but it very slow
$synonyms = array(
'car' => array('automobile', 'vehicle', 'auto', 'motor'),
'bread' => array('food', 'feast', 'loaf', 'bun')
);
// Modify the WordPress search query to include synonyms
function add_synonyms_to_search($query) {
// Check if it is a search query and not in admin area
if ($query->is_search && !is_admin()) {
// Get the original search term
$search_term = $query->get('s');
// Split the search term into words
$words = explode(' ', $search_term);
// Loop through each word
foreach ($words as $word) {
// Check if the word has any synonyms in the array
if (array_key_exists($word, $synonyms)) {
// Loop through each synonym
foreach ($synonyms[$word] as $synonym) {
// Add the synonym to the query with an OR operator
$query->set('s', $query->get('s') . ' OR ' . $synonym);
}
}
}
}
// Return the modified query
return $query;
}
// Hook the function to the pre_get_posts action
add_action('pre_get_posts', 'add_synonyms_to_search');
how to implementing it to relevanssi light?
]]>Hey,
Just installed and it worked great! I get that it has minimal settings (which is want we want) but I just need one thing – to be able to exclude certain pages/posts based on page ID.
Is that possible? Really don’t want to upgrade to the much heavier version just for that one thing.
Thanks
Tim
]]>Hi Mikko,
My team was testing Relevanssi Light to compare it with the standard free version, and we ran into a problem.
On all of our local environments when we enable this plugin, we are not seeing the index added to the wp_posts table. We have read in your comments that there should be a relevanssi_light_fulltext column added to the wp_posts table.
Our senior engineer was not seeing this on his end and asked me to test it on my local. When I did, I had the same exact problem. We’re also using two completely different local setups, so this indicates a plugin problem.
We’re intending to use Relevanssi on a very large site, and we only need the basic features. So we were excited to see this light version. The only addition we need to make is having tags included in the index to provide better results for posts.
I know this plugin hasn’t been updated in a few months, so perhaps we just identified a new problem. I felt it best to write you here to see if there’s a solution.
Looking forward to your response!
~ Michael
]]>Hello, and thank you for these wonderful plugins,
I have a normal search form and a live search form powered by wp rest api, and i have tried both Relevanssi and Relevanssi Light plugins to include multiple terms and taxonomy search… and i was surprised when i noticed that Relevanssi Light is affecting my live search form just like the normal form, and that’s a feature i was looking for eagerly. the problem is that Relevanssi Light does not support taxonomy based search, and Relevanssi does not improve my live search form, and i do not feel comfortable about using both plugins at the same time.
My question is, do you know why Relevanssi Light was able to improve my live search form out of many other plugins that i have tried before, and will you be interested in adding that feature to Relevanssi in the future?
]]>It might be very useful to know whether Relevanssi Light 'relevanssi_light_custom_fields'
filter supports indexing Oxygen Builder contents? Can you help?
What has to be indexed to get Oxygen Builder pages, WooC products and posts content indexed? ‘ct_builder_shortcodes’ or ‘ct_options’, or both?
]]>Hi, is it possible to enable this for admin search only?
We’re using Fibo Search (formerly AJAX Search for WooCommerce) for active frontend search but this does nothing to improve the slow admin search. I added Admin Ajax Search which boosts admin search by not reloading the entire page. However, admin search is still slow with 2.5k+ products.
Relevanssi Lite turbocharges the Ajax admin search. However, it doesn’t play nicely with Fibo Search. Having both enabled breaks frontend search resulting in no results.
Is there a simple tweak I could make (hook maybe) to enable Relevanssi Lite for admin searches only and leave Fibo Search to handle frontend?
]]>Hello Mikko,
Thanks for working on this plugin. My Woocommerce products are not showing up. I had a look at the wordpress posts table and the field that Relevanssi Light should create is missing. The thing is that my wordpress table is not named wp_posts but xx_posts (xx are 2 other letters). I was wondering if it could be the reason. I would like to index my woocommerce products.
My config :
Wordpress Multisite 5.7
PHP 7.4
Database 5.5.5-10.3.28-MariaDB
Woocommerce 5.1
Hello everyone,
I referred to this support thread, but the solution is not working for me.
Does anybody knows what can cause such result, website running WPML and WP Rocket cache.
]]>I’m having similar problems like in this issue
When I try to search something, I get this error:
WordPress database error: [Unknown column ‘relevanssi_light_data’ in ‘field list’]
SELECT SQL_CALC_FOUND_ROWS wp_posts.* , MATCH(post_title,post_excerpt,post_content,relevanssi_light_data) AGAINST('started' IN BOOLEAN MODE) AS relevance FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (3) )AND MATCH(post_title,post_excerpt,post_content,relevanssi_light_data) AGAINST('started' IN BOOLEAN MODE) AND wp_posts.post_type IN ('post', 'page', 'attachment') AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled' OR wp_posts.post_author = 1 AND wp_posts.post_status = 'private') GROUP BY wp_posts.ID ORDER BY relevance DESC, wp_posts.post_date DESC LIMIT 0, 10
My plugin version is 1.2.
Here is some information about my mysql:
innodb_version: 5.6.45-86.1
version: 10.1.43-MariaDB-0ubuntu0.18.04.1
I am working on a search feature for a site and using Relevanssi Light. It seems to be doing a great job of providing results quickly. However there’s one wrinkle which is that partial search terms are not matching.
In the link provided there are no search results, but by adding “y” to the end of the search term, a number of results are found. I would like to be able to get those results to show up when the “y” is missing. Is that possible?
Thanks
]]>Hi team,
For the moment, i am using the free classic version of Relevanssi. This year, i am trying to reduce my database size.
I only use “classic functions” that offers relevanssi to improve the ux of my readers if they want to find something.
In this way, can i replace relevanssi via Relevanssi light ?
Where is the gain ? database size ? numbers of entries in the database ??
Best
Yvan
]]>I’m working on a local site, so I can’t provide a link.
When I click process all posts I get: Uncaught TypeError: can't access property "length", chunk is undefined
.
This happens when Relevanssi Light is the only plugin active (though I do have posts in my database of post types from other plugins).
Using latest version of WP and Relevanssi Light. I have added the filter for boolean mode but made no other customisations
]]>Hi. I found about 700kb of error log file in my public_html folder and it is just errors from this plugin. Another problem was that updated post titles did not appear in the search terms, even when I requested reindexing.
]]>I wanted to try this light version of Relevanssi, but it is marked as Requires at least: 5.3
so it won’t install on my test site using 5.2.7.
The scan at Plugin Doctor says the functions only need 4.1. What does this need from 5.3?
I checked Relevanssi and it says 4.9.
Relevanssi Light is great and it’s nice to have functioning search again. Is there a way to have the search results sorted by most recent date first?
]]>I installed the plugin, processed all posts and when I try to search it returns zero results. Any ideas how to correct this? Thank you.
]]>