Your search is in good hands

  • Pricing
  • Documentation
    • User guides
    • Support
    • Features
      • Roadmap
      • Artificial Intelligence
      • Elasticsearch
      • OpenSearch
      • Solr
      • Algolia
      • Swiftype (soon)
      • Hosting
      • Addons (Plugins, themes, features)
    • Blog
  • Demo
    • All Demos
    • Testimonials
    • Showcase
  • My Licenses
    • Login
    • Why us
    • Contact us
Menu
  • Pricing
  • Documentation
    • User guides
    • Support
    • Features
      • Roadmap
      • Artificial Intelligence
      • Elasticsearch
      • OpenSearch
      • Solr
      • Algolia
      • Swiftype (soon)
      • Hosting
      • Addons (Plugins, themes, features)
    • Blog
  • Demo
    • All Demos
    • Testimonials
    • Showcase
  • My Licenses
    • Login
    • Why us
    • Contact us

Home » Your configuration journey, step by step » Add-ons » Premium add-on » Manage more than one Elasticsearch or Solr index

Manage more than one Elasticsearch or Solr index

245 views 0 December 4, 2018 Updated on November 15, 2019

In most situations, only one Elasticsearch/Solr index will be required to index and search a WordPress site.

But in some occasions, two or even more Elasticsearch/Solr indexes can be handy. Not only can you create several Elasticsearch indexes, or several Solr indexes, but you can even mix Elasticsearch and Solr indexes.

Below are listed some use case for which one could need several indexes.

Multi-language

Image wpsolr-wpml-certificate-1.png of Manage more than one Elasticsearch or Solr index
WPSOLR “WPML-Ready” certification

The general description of this use case can be found in the knowledge base article on multi-language search.

Two ore more languages are managed by the WPML or Polylang plugin. Search results will not only display documents from the selected language, but also apply some language-specific rules.

This is achieved by indexing documents associated with a language in their own index, configured with a schema containing the language-specific analysers.

 

Concurrent indexing

Let us imagine that, for some reason, one need to reindex completely all the documents. Deleting the index content, then reindex it, can take quite some time with millions of documents.

But a better option is to index a secondary index, while the first index is still serving the search results. At the end of the full indexing, one just have to promote the secondary index as the primary index. Visitors will never be served empty results.

Using several Elasticsearch/Solr indexes

Indexing secondary Elasticsearch/Solr index

 

Live index schema update

If an index schema has to be changed, it is inevitable that a full reindexing must occur. But during the reindexing, results would be wrong. Unless a secondary index is created, setup with the new schema, and indexed fully.

 

Index upgrade or migration

Sometimes, an index must be upgraded to a later version. Or cloned to another hosted service. This is usually a stress, but not with WPSOLR.

Creating a new index, with the latest version, or located at the new hosted service, will allow (after reindexing) to test quietly the new  search results. If errors are detected, the search can quickly be setup back to the primary (untouched) index.

Was this helpful?

Yes  No
Related Articles
  • Listable add-on
  • MyListing add-on
  • YITH WooCommerce Ajax Search add-on
  • Embed Any Document add-on
  • PDF Embedder add-on
  • bbPress add-on
Expand All Collapse All
  • What is it WPSOLR ?
    • The standard WordPress SQL search
    • The WPSOLR search with Elasticsearch, Apache Solr, or Algolia
  • Your configuration journey, step by step
    • Install Apache Solr
    • Hosted Apache Solr and SolrCloud Services
    • Install Elasticsearch
    • Elasticsearch Hosting
    • Configure your indexes
      • Generate a test Apache Solr index
      • Generate a test Elasticsearch index
      • Create an Apache Solr index
      • Create a SearchStax SolrCloud index
      • Create an Elastic Elasticsearch index
      • Create an Algolia index
      • Create an Elasticsearch index
      • Create an Opensolr Solr index
      • Create a Qbox Elasticsearch index
      • Create an ElasticPress Elasticsearch index
      • Create an Aiven Elasticsearch or OpenSearch index
      • Create a Bonsai Elasticsearch index
      • Create an Amazon Amazon Elasticsearch or Amazon OpenSearch index
      • Create an ObjectRocket Elasticsearch index
      • Create a Cloudways Elasticsearch index
      • Create an Alibaba Cloud Elasticsearch index
      • Create a Compose Elasticsearch index
      • Connect to an Apache Solr index
      • Connect to an Elasticsearch index
    • Add-ons
      • bbPress add-on
      • YITH WooCommerce Ajax Search add-on
      • SEO add-ons
        • Yoast SEO add-on
        • All in One SEO add-on
      • Listable add-on
      • ACF add-on
      • Advanced Scoring add-on
      • Cron Scheduling add-on
      • Theme add-on
        • Filters layouts
          • Radiobox & Checkbox Layout
          • Numeric Range Layout
          • Colour Picker Layout
          • Range Slider Layout
        • Add Ajax to the current Theme
        • Collapse taxonomy hierarchies
        • Custom Facets CSS
      • WPML add-on
      • Premium add-on
        • Manage more than one Elasticsearch or Solr index
      • PDF Embedder add-on
      • Geolocation add-on
      • AI Natural Language APIs add-on
        • Amazon Comprehend
        • Google Natural Language
        • Aylien Text Analysis
        • MeaningCloud
        • Qwam Text Analytics
      • Toolset Types add-on
      • AI Image and OCR APIs add-on
        • Google Vision
        • Amazon Rekognition
      • Embed Any Document add-on
      • MyListing add-on
      • Polylang add-on
      • WooCommerce add-on
      • Cross-domain search add-on
      • Directory+ add-on
      • Toolset Views add-on
      • Listify add-on
      • Jobify add-on
      • Query Monitor add-on
  • Quick start
Login
Support
Privacy policy
  • Terms and Conditions
  • © 2020 wpsolr.com. All Rights Reserved.
Youtube
Roadmap