Skip to main contentSkip to footer

By default posts imported with WP All Import do not get indexed by Relevanssi. The importing process does not trigger Relevanssi indexing. That is, however, easy to remedy:

add_action( 'pmxi_saved_post', 'post_saved', 10, 1 );
function post_saved( $id ) {
    relevanssi_index_doc( $id, true, relevanssi_get_custom_fields(), true );
}

Add this code to your site, and any posts imported with WP All Import will be indexed with Relevanssi. Do note that this will make the importing process run slower.

Your account

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

Search

Popular Resources

Boosting shorter posts with higher keyword density

…15 search term appearances might well be a better match for the search than a 2000-word post with 20 search term appearances, as the density is much higher in the shorter post. One way to make Relevanssi give a boost to shorter posts is the add a consideration for the……a boost to shorter posts that have a higher weight and will punish very long posts that rank high just for being long. The version above only considers post content. It does not count the attachment content. This version includes that: add_filter( ‘relevanssi_match’, ‘rlv_inverse_document_length’, 10, 2 ); function rlv_inverse_document_length( $match,…

Adjusting search throttle
If Relevanssi Premium causes out-of-memory problems, make sure you have the “Throttle searches” option checked. However, if that doesn’t work…
FacetWP
Relevanssi is generally well compatible with FacetWP, which provides advanced filtering and faceting capabilities for the search. There are, however,…

Related Posts:

Comment Section:

2 Comments. Leave new

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