Skip to main contentSkip to footer

Short answer: no. Relevanssi can only access WordPress content.

For a longer answer, read on.

Only within single WP installation

Relevanssi only operates within one WordPress installation. Relevanssi Premium supports multisite searching, where the search can return posts from more than one subsite at once, but even in those cases the WordPress sites must be part of the same installation.

It’s not possible to search content that exists in another WordPress installation, not even if it’s on the same server.

No outside content

Relevanssi is heavily dependent on WordPress methods. When getting posts, Relevanssi uses the get_post() function in WordPress and so on. Those functions cannot access anything outside the WordPress installation, whether it’s another WordPress installation, HTML files or external databases.

If you still need this…

If you really must have Relevanssi access outside data, there’s one way to achieve that: import the data inside your WordPress installation. Create a custom post type, import the data and have Relevanssi index the post type, and then in the search results change the links on the fly to point to the actual source and not the custom post type post.

For small amounts of data, this may be a feasible approach, if the data is available in a format that’s easily accessible.

Your account

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

Search

Popular Resources

Search results in random order
Do you want to order your search results in random order? Here’s how: add_filter( 'relevanssi_hits_filter', 'shuffle_search' ); function shuffle_search( $hits…
Flatsome

…can do. First, make sure the “Search Product SKU” setting in Flatsome is disabled. Then set Relevanssi to only index the products, not product variations, but make Relevanssi index variation SKUs for the main product. Then we need to modify the Flatsome Ajax Search function above like this: function rlv_flatsome_search_function(……for posts and pages. If the live search does not work Flatsome has a built-in live search that should work with Relevanssi without modifications, but in case it doesn’t (for example searching for partial SKUs doesn’t work correctly even though it works in the Relevanssi admin search), you can add……query matches a variation SKU, the product permalink is replaced with the variation permalink: add_filter( ‘post_type_link’, ‘rlv_wc_variation_permalink’, 10, 2 ); function rlv_wc_variation_permalink( $permalink, $post ) { global $flatsome_live_search_query, $wp_query; if ( empty( $flatsome_live_search_query ) && isset( $wp_query->query_vars[‘s’] ) ) { $flatsome_live_search_query = $wp_query->query_vars[‘s’]; } if ( ‘product’ === $post->post_type &&…

Related Posts:

Currently there are no related posts available.

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