Are you sure the post exists and is public? I tried visiting the URL, and I get “not found”, and when I look at the news category archives, the post doesn’t seem to exist there either.
That would explain why it doesn’t appear in the search.
Thank you for looking Mikko,
Yes, I’m certain it exists (and is public now)
My apologies, but what you saw was an anomaly due to me deciding to run that particular post as a headline article soon after asking, so it was temporarily unavailable to the public. It was published at midnight, so is now top of our recent posts on the homepage here:
https://www.born-again-christian.org/news/
It’s a members site, but non members see the snippet, and have full access to the search, they just need to register to read the full articles.
I’ve just now done another search using the term Youths: Remember now!
and that page still doesn’t appear in the Relevanssi serp, but two other pages with the remember
term do display.
I’m wondering if it could be due to the length of the url tripping some inbuilt limit on Relevanssi indexing? Just a guess.
Still Flummoxed…
-
This reply was modified 1 year, 10 months ago by
1waytoheaven. Reason: Added info
-
This reply was modified 1 year, 10 months ago by
1waytoheaven.
If you look at the post with the Relevanssi debugger (Settings > Relevanssi > Debugging), what does it look like?
The length of the URL doesn’t matter; Relevanssi doesn’t look at the URL.
Thank you for responding Mikko 🙂
It looks like this (copied and pasted) below:
The title
remember youths
The content
1762 1832 1906 abilities able absolutely acknowledgement act active acts adam adapt affectionate age aged ambitions ancestors apart apply assuredly away believe besetting blessings blood body book boyfriend bus business calls came capable career certainty change child children christ christian clarke cleaves clothes come commit consider convince corruption course covenant created creator crowd crusade culture day days death decades deceitfulness deflect deformed deny desires develop did die difficult dive divine dominion don doorstep draw ears ecc ecclesiastes eighties elderly embarrassed enables encumbered endeared endorsed enduring england enjoy enlighten enquiring entitlement entrenched especially essential estate eternal evangelist evil exhort existence eyes faculties faith father feeds feel feet filled finish fix following forget free friend fruitless future gave gen generation gift girl given gives glorious glory god got gracious graciously grandmother granted gratitude greater greatest grow habits hands happiness happy hardened harmony harsh headlong health heart hearts hit holy home hope increasing inevitably informed inside jesus join joy joyful jumped killed kind kindness kjv know late learn leaving led left lesson lest lethargy life like little live living long lord love loving maker making matters memory mental merciful mercy methodist middle ministers ministry miracles misery moment mortgage new nigh noble obedience obey offers old older order outpouring outside owns parentage parents passions people perfect person physical pleasure pleasures potential power praise pray preaching preserves primitive prompted protects provides pure purpose pursuits rails ready received redeem redemption relationship religion remember repentance respond responsibilities result results right rights rom satan saved saviour say sent servant serve severed shalt signs simpler sin sinful sinless sinned sins slaves slow smith sold son soon sorry soul speak sped spirit spouse stadium stage stammered start state stead stimulated strives strong stronghold study successful suffering sunderland surrender teenage teenager tender think thou thoughts thy time today tomorrow tongue unfulfilled unregenerate unsaved upholds useful vain value vigour wages waits walk wasn waste way weaknesses whooping widows wigglesworth wise woman wonders words worse wouldn years young youth youthful zero
Just to make sure: you said WP admin search finds this post but does the Relevanssi admin search (Dashboard > Admin search) also find this post?
The problem is not in the indexing, so it’s a searching problem. If you look at the search query with the Query Monitor, how does that look like? There’s some filtering element in the query that keeps this post out of the results.
This may not be relevant, but I’ll mention it anyway.
I’ve just cropped the featured image on that Post, in WP Media Library, and I can see and have saved the cropped image in WP Admin and updated the post… but… I still see the UNcropped image on the live page.
Again flushed LiteSpeed caches, and two different browser caches, but still see the UNcropped featured image.
I’ve never seen this behaviour whilst editing any other posts: Strange.
Yes, when I select the Relevanssi option to use Relevanssi as the Admin search it does display the post searching using youths remember
So that confirms your thinking: It’s a searching problem, not indexing.
I activated the Query Monitor plugin, and still Relevanssi as the Admin search and the terms youths remember
I see this (copied and pasted below):
Query variables
post_types: any
s: youths remember
relevanssi_admin_search: 1
operator: AND
posts_per_page: -1
Filters
hide
relevanssi_search_ok
10: relevanssi_block_on_admin_searches
11: relevanssi_control_media_queries
relevanssi_query_filter
10: relevanssi_limit_filter
relevanssi_post_ok
9: relevanssi_default_post_ok
10: relevanssi_wpmembers_compatibility
Results
Found a total of 3 posts, showing posts 1–3.
Youths: Remember Now! post (Edit post)
...a fruitless waste her eight decades had been, with absolutely nothing of eternal value to show for them. Young One: Remember Now! Remember now thy Creator in the days of...
Score: 1026.86
2014 Holman KJV Bible post (Edit post)
...is not required. Remember, when reading a book, or computer screen, to rest your eyes every ten minutes by refocussing on an object in the distance for a few seconds,...
Score: 256.73
'Christian' Valentine's Day Cards post (Edit post)
...total nudity, drunkenness, and male youths running amok whipping nubile women with goatskin thongs to ‘increase their fertility’. I warned you it was wild. But don’t get the wrong idea;...
Score: 171.15
Interestingly, The search term remember is highlighted yellow in my view, but NOT the Youths word in the Title. Could it be the following colon?
-
This reply was modified 1 year, 9 months ago by
1waytoheaven.
-
This reply was modified 1 year, 9 months ago by
1waytoheaven.
Try adding this to your theme functions.php:
remove_filter( 'relevanssi_post_ok', 'relevanssi_wpmembers_compatibility', 10 );
This will disable the built-in WP-Members filtering in the search. This is a good candidate for blocking things in the results. After all, I understand you don’t really want to filter out anything from the results, it’s just that you need to log in to access the full posts?
As for the title highlights, the colon shouldn’t matter. Is Relevanssi set to highlight titles in the first place?
It’s not the colon (I tried removing it.)
In the Neve child theme functions.php file I put this code at the bottom of the existing code…
/**
* Relevanssi Testing
*/
remove_filter( 'relevanssi_post_ok', 'relevanssi_wpmembers_compatibility', 10 );
I cleared browser cache, and searched again for youths remember
But with the same negative result.
(I confirm that non-members can search the site fully without joining, the WP-Members plugin allows them to see a snippet in the resulting serp. Then they can Register if they wish to read the full article.)
-
This reply was modified 1 year, 9 months ago by
1waytoheaven.
Try it this way:
add_action( 'init', function() {
remove_filter( 'relevanssi_post_ok', 'relevanssi_wpmembers_compatibility', 10 );
}, 11 );
BINGO! 🙂
So what does that tell us?
And do I leave that code in functions.php as is?
It tells us the problem was WP-Members all along, and yes, keep that code in place, as it’ll disable the WP-Members filtering you don’t want to use (most people want it, that’s why it’s automatically enabled, but you have a different use case here). You need to keep it as long as you use WP-Members.
Thank you Mikko 🙂
Why that particuar Post though?
If it contains a word that WP-Members filters I’d like to avoid using it in future. There’s no swearing or vulgar words on our site. I could contact the Developer to ask.
It’s not about the content, it’s about how WP-Members is set to restrict access to the posts. Does that post have different access controls than your other posts?
No, it has the same access settings as all my other Posts, I just checked.
Not to fuss over it.
Thank you for assiting me to tune Relevanssi to our site setup.
I’ll give you a nice review now.
Colin