Not all pages, products, etc. are indexed
Describe the bug Not all pages and products are indexed despite clicking the “re-index” button. Or when we save the missing pages and products, that it comes in the indice.
What could this be due to?
To Reproduce Steps to reproduce the behavior:
- Go to 'Algolia Search' > 'Autocomplete'
- Click on 'Re-index' of the All post index
Expected behavior We want to have all products and pages in the index, but are missing quite a few.
Good day @lauraayb
My first question is if there have been any customizations of any style done for the site? or is this is a case of say you've just installed and connected this morning and clicked the re-index button for the first time ever?
How many posts are in the WP install at the moment, for an idea of scale worked with?
Any errors popping up or does the UI visually show reaching 100% done?
One extra consideration, are you comparing the correct indexes in Algolia? wp_posts_post wp_searchable_posts for example.
Hello @tw2113,
Thanks for your response.
We have indeed made additions using the functions.php. In the functions, we give additional data to the products that are indexed, such as the taxonomy color and type, like:
$color = get_the_terms($post->ID, 'colour')[0] ?? null;
$attributes['color_name'] = $color ? $color->name : null;
Otherwise we experience no problems in terms of UI and everything seems to work properly.
We also compare the good indexes, because we only use wp_searchable_posts
Just in case it helps, can you provide the complete custom code used?
Any PHP error logs showing up around the time of trying a re-indexing?
Still also curious about volume being indexed. I also know really long content gets split up but that'd show more records on the Algolia Dashboard side than what would seem to be on the WordPress side.
Any news or changes here @lauraayb ?