Indexer & Auto-Sync

FilterX uses a highly optimized, dedicated background indexing engine. Instead of running slow, complex database queries every time a user filters your items, FilterX pre-calculates the relationships and stores them in a lightning-fast lookup table.

💡 Why is an Indexer necessary? (Use Cases)

E-Commerce Flash Sales

Scenario: You suddenly change 300 products to "On Sale" status.

Without FilterX: Your server crashes as thousands of users try to filter by "On Sale", causing massive database load.
With FilterX: The plugin instantly detects the price changes and updates the index in the background. Users instantly see the new products when filtering, with zero performance hit to your server.

Massive Directory Sites

Scenario: You have a real estate site with 50,000 properties and 20 different filter options (Area, Price, Beds, Baths).

Without FilterX: A database query checking 20 different custom fields across 50,000 posts takes 4+ seconds to load.
With FilterX: Because everything is pre-indexed into a specialized flat structure, the filtering happens in milliseconds regardless of how many custom fields exist.

How Auto-Sync Works

FilterX operates silently in the background so you never have to worry about your filters being out of date.

1

You update a post or product

Whenever you save a post, change a WooCommerce price, or update an ACF field, FilterX immediately notices the change.

2

Smart Background Processing

If you updated just one or two posts, FilterX syncs them instantly. If you bulk-edited hundreds of posts, FilterX automatically switches to a background Queue so it doesn't freeze or slow down your WordPress dashboard.

3

Lightning Fast Lookups

When your visitors use the filters, the plugin queries the optimized index instead of the heavy WordPress database, delivering instant results.

Manual Operations

Because of the Auto-Sync feature, you rarely need to touch the index manually. However, if you import thousands of posts directly into the database (bypassing standard WordPress functions), you can trigger manual re-indexing.

Re-index All

Go to Admin → Index Status → Click 'Re-index All'. This runs safely in the background even for millions of posts.

Re-index Single Facet

Go to Admin → Facets. Hover over any specific facet and click 'Reindex' to update just that one filter.

Check Queue Status

Go to Admin → Index Status to see a live dashboard of posts currently syncing in the background.

Pro Tips for Massive Sites

  • 🚀Batch Size: By default, FilterX processes 100 posts at a time in the background. If you have a powerful dedicated server, you can increase this batch size in the Settings to speed up massive imports.
  • 🚀Visual Indicators: If you ever see filters taking slightly longer to load after a massive product import, it just means the background queue is still catching up. It will automatically resolve itself.
  • 🚀Caching Compatibility: The indexer automatically registers when it finishes updating and can intelligently tell your caching plugins (like WP Rocket) to clear the cache so users always see the latest products.