Skip to main content

Troubleshooting Indexer Issues

If the Indexer shows zeros instead of the actual count of items for filter options, it could be due to several reasons. This guide will walk you through the possible causes and solutions.

Updated over 8 months ago

1. Check if the Indexer Is Enabled for Filtered Objects

  1. Go to WordPress Dashboard > Crocoblock > JetPlugins Settings > JetSmartFilters > Indexer Settings.

  2. Ensure that the toggle is enabled for all objects that should be filtered and indexed.

2. Check Query ID

If you’re using the Query Builder functionality, make sure that the CSS ID in both the filter widget and the listing grid widget settings matches the Query ID in the Query Builder.

  • Set the same IDs:

    • Query Builder includes the value "grid".

    • The same ID "grid" should be used in the Query ID field of the filter widget’s General tab.

    • Also, apply this value in the CSS ID of Advanced tab of the posts widget (e.g., in the Listing Grid).

  • Change the Ajax Request Type to Referrer

  • For unrelated to filtration queries on the page, assign random IDs to prevent conflicts with filtration-related queries

3. Review Filter Settings

  • For “Taxonomies” as Data Source: Ensure the Is Checkbox Meta Field (JetEngine) toggle is disabled. If enabled, it could prevent the indexer from working correctly. This setting applies to the “Custom Fields” source.

  • Changing Filter Types: If you switch from one filter type to another (e.g., from Select to Checkbox), you need to check whether Is Hierarchical option wasn't enabled. Only after you disable it, you can change the filter type.

  • Exclude/Include Settings: When using Checkboxes List, Select, or Radio filter types, ensure that the Exclude/Include Items field is not empty if either option is selected.

4. Check Meta Field Settings

To ensure the Indexer works correctly with Meta Field source, follow these steps:

  1. If you're using a Filter based on a Checkbox meta field, make sure the "Save as Array" option is enabled.

  2. For a Date meta field used with a Date filter, ensure the "Save as Timestamp" option is enabled.

  3. Edit each post, CCT item, or user that has a meta field with incorrect values.

  4. Uncheck the options in the meta field and save the object.

  5. Reselect the correct options and save again.

  6. Repeat these steps for all relevant objects.

5. Re-Index Filters

If everything is set up correctly, but the issue persists, you can re-index the filters:

  1. Go to WordPress Dashboard > Smart Filters.

  2. Click the Apply Indexer button.

6. Re-Activate the JetSmartFilters Plugin

Deactivating and reactivating the JetSmartFilters plugin may also help resolve indexer issues:

  1. Go to WordPress Dashboard > Plugins.

  2. Deactivate and then activate the plugin again.

7. Contact Support

If you’ve followed all the steps and still encounter issues, please contact our support team for further assistance.

Did this answer your question?