Skip to main contentSkip to footer

Can Relevanssi access content outside WordPress?

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

ThemeCo
ThemeCo themes use custom codes for dynamic content. Those are not usual shortcodes, and Relevanssi won’t expand them automatically. In…
Custom weighing with relevanssi_match and relevanssi_results

…taxonomy terms Weight from tags Weight from excerpts Weighing multisite subsites More weight for whole word matches Return only comments Weight based on parent Weight for featured images Boost matches from title beginning Performance issues Date-based weight Here’s an example function that will double the weight of posts published within……one week and halve the weight of posts older than that. add_filter( ‘relevanssi_match’, ‘date_weights’ ); function date_weights( $match ) { $post_date = get_the_time( ‘U’, $match->doc ); if ( time() – $post_date < WEEK_IN_SECONDS ) { $match->weight = $match->weight * 2; } else { $match->weight = $match->weight / 2; } return……some tips for improving the performance at the end of the page. How to use these functions? If you don’t know how to use these functions, please read Adding custom functions to your site. Table of contents Date-based weight Custom field -based weight Adding extra weight to users Weight from…

Debugging slow searches
Reasonable expectations for Relevanssi searching speeds are measured in seconds. Relevanssi does not generally return results in milliseconds. On the…

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