Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not all pages, products, etc. are indexed #448

Open
lauraayb opened this issue Feb 6, 2025 · 3 comments
Open

Not all pages, products, etc. are indexed #448

lauraayb opened this issue Feb 6, 2025 · 3 comments

Comments

@lauraayb
Copy link

lauraayb commented Feb 6, 2025

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:

  1. Go to 'Algolia Search' > 'Autocomplete'
  2. 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.

@tw2113
Copy link
Member

tw2113 commented Feb 6, 2025

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.

@lauraayb
Copy link
Author

lauraayb commented Feb 6, 2025

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

@tw2113
Copy link
Member

tw2113 commented Feb 6, 2025

Just in case it helps, can you provide the complete custom code used?

Any PHP error logss 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants