Mikko Saari
Forum Replies Created
-
Forum: Plugins
In reply to: [Relevanssi Live Ajax Search] The live search is wonkyYou can move the popup with CSS. Try this:
.relevanssi-live-search-results {
left: 0px !important;
top: 0px !important;
}Forum: Plugins
In reply to: [Relevanssi - A Better Search] PHP Notice : _load_textdomain_just_in_timeYou need to ask that from the Simple Custom Post Order developers, I can’t fix this for them. Relevanssi has always loaded the textdomain at the right time.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Date Range FilterForum: Plugins
In reply to: [Relevanssi - A Better Search] Searches not workingI’m just going to say no. Relevanssi is not the right tool when you have 2.5 million posts. You need an externally hosted search. Check out ElasticSearch.
The Relevanssi indexing is correct. Relevanssi indexes individual words and displays them in alphabetical order.
Does the Relevanssi admin search (Dashboard > Admin search) show you the correct results? Are the results from the Relevanssi admin search different from your front end search? If that’s the case, your front end search is not Relevanssi.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] relevanssi_orderby | relevanssi_orderYes, it’s available in both versions.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] relevanssi_orderby | relevanssi_orderOk, that makes it much clearer.
This is, unfortunately, a case where you need code. This can’t be done with
relevanssi_orderby
parameters. You need to sort the posts by post title, and then have a function that takes the custom field matches and moves them first.This would be fairly easy to do with Relevanssi Premium. With the free version, it’s harder. Using the
relevanssi_hits_filter
is the key in any case.Forum: Plugins
In reply to: [Relevanssi - A Better Search] relevanssi_orderby | relevanssi_orderIf you search for “Roma”, all the results will have the word “Roma” in them. So which ones will be first and which ones will be in alphabetical order?
In theory, there’s no limit to how you can sort the search results. Relevanssi gives you full control. You just have to be able to define the algorithm, and if you’re looking for something more complicated, do it in PHP code.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Issue when using with Bricks / MetaboxProbably not (it didn’t have any effect when I tested this), but you can try disabling it to see if that helps.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] relevanssi_orderby | relevanssi_orderYou are using Search & Filter Pro, so it’s possible Search & Filter is overriding this. See if Search & Filter Pro has a way to adjust the order of the results. Also, where have you added these lines?
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Exclude Woocommerce product categoriesYes, you can. It happens exactly as it does in the WP default search, using taxonomy parameters. See documentation here. For example, to exclude product categories 5 and 7, you can use:
add_filter( 'relevanssi_modify_wp_query', function( $query ) {
$tax_query = array(
array(
'taxonomy' => 'product_cat',
'terms' => array( 5, 7 ),
'operator' => 'NOT IN',
'field' => 'term_id',
)
);
$query->set( 'tax_query', $tax_query );
return $query;
} );Forum: Plugins
In reply to: [Relevanssi - A Better Search] Issue when using with Bricks / MetaboxSorry, but I can’t reproduce the problem. The metabox works for me; I can use it to find posts without problems. Metabox does a regular search query, Relevanssi is or is not involved, and I get results. I checked, and Relevanssi shouldn’t stop this query.
Is Relevanssi enabled for admin searches?
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Issue when using with Bricks / MetaboxYou can’t set custom field indexing to “none” because all content in Bricks is stored in the
_bricks_page_content_2
custom field. If you disable that, Relevanssi won’t be able to access any of your page content. Relevanssi doesn’t let you do that.The solution is probably to stop Relevanssi from interacting with that specific search. Unfortunately, I don’t understand what “my select2 search for a metabox ‘post’ field, configured as a custom user field” means. If this is something I can reproduce somehow without buying Metabox, I can look into this if you provide good instructions on how to reproduce this.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Question about free pluginThe way the search results look like is up to your theme. Relevanssi provides a list of results and if you choose so, better excerpts for the posts, but how those results and excerpts look like to the user depends on your theme’s search results template and stylesheet. So, if you want to modify that, work with your theme.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] No search resultsIn that case I don’t unfortunately have an answer. If you’re doing something Generate Press custom to display the search results, try using a plain WordPress search results template instead.