WPSolr logo
  • Brands & Agencies 💛
  • Products
    • Parsing & Chunking
    • Search
      • Algolia  Search
      • Apache Solr  Search
      • Elasticsearch  Search
      • Google AI Commerce  Search
      • OpenSearch  Search
      • OpenSolr  Search
    • AI Search
      • OpenSearch  AI Search
      • PostgreSQL  AI Search
      • Vespa  AI Search
      • Weaviate  AI Search
    • AI Recommendations
      • Amazon Personalize  AI Recommendations
      • Recombee  AI Recommendations
    • AI Personalized Search & Recommendations
      • Algolia  AI Personalized Search & Recommendations
      • Google AI Commerce  AI Personalized Search & Recommendations
  • Learn
    • Documentation & Guides – Everything to get started fast
    • Youtube – 100 practical videos from setup to live site demos
    • Forums – Direct support from our team
    • Blog
  • Pricing
  • My licenses
  • Meet
  • 📞  Call
    • 📞  US : (951) 612-8259
    • 📞  France : 01 62 04 55 85
  • Brands & Agencies 💛
  • Products
    • Parsing & Chunking
    • Search
      • Algolia  Search
      • Apache Solr  Search
      • Elasticsearch  Search
      • Google AI Commerce  Search
      • OpenSearch  Search
      • OpenSolr  Search
    • AI Search
      • OpenSearch  AI Search
      • PostgreSQL  AI Search
      • Vespa  AI Search
      • Weaviate  AI Search
    • AI Recommendations
      • Amazon Personalize  AI Recommendations
      • Recombee  AI Recommendations
    • AI Personalized Search & Recommendations
      • Algolia  AI Personalized Search & Recommendations
      • Google AI Commerce  AI Personalized Search & Recommendations
  • Learn
    • Documentation & Guides – Everything to get started fast
    • Youtube – 100 practical videos from setup to live site demos
    • Forums – Direct support from our team
    • Blog
  • Pricing
  • My licenses
  • Meet
  • 📞  Call
    • 📞  US : (951) 612-8259
    • 📞  France : 01 62 04 55 85
  • Brands & Agencies 💛
  • Products
    • Parsing & Chunking
    • Search
      • Algolia  Search
      • Apache Solr  Search
      • Elasticsearch  Search
      • Google AI Commerce  Search
      • OpenSearch  Search
      • OpenSolr  Search
    • AI Search
      • OpenSearch  AI Search
      • PostgreSQL  AI Search
      • Vespa  AI Search
      • Weaviate  AI Search
    • AI Recommendations
      • Amazon Personalize  AI Recommendations
      • Recombee  AI Recommendations
    • AI Personalized Search & Recommendations
      • Algolia  AI Personalized Search & Recommendations
      • Google AI Commerce  AI Personalized Search & Recommendations
  • Learn
    • Documentation & Guides – Everything to get started fast
    • Youtube – 100 practical videos from setup to live site demos
    • Forums – Direct support from our team
    • Blog
  • Pricing
  • My licenses
  • Meet
  • 📞  Call
    • 📞  US : (951) 612-8259
    • 📞  France : 01 62 04 55 85

Multilingual search

1227 views 3 January 13, 2017 Updated on November 15, 2019 admin

World class WordPress multilingual search
Multilingual search with WPSOLR

A World class multilingual search

Image wpsolr-wpml-certificate-1.png of Multilingual search
WPSOLR “WPML-Ready” certification

WPSOLR is perfectly integrated with WordPress most popular multilingual plugins: WPML and Polylang. Your search should not be less multilingual that your posts, products, or pages, isn’t it ?

And true multilingual search is complex, because it has to cope with many layers, from search content, to static and dynamic UI elements.

We will explain all of them in detail in the next chapters.

Multilingual search content

Your search content is made of post types bits and pieces: title, text, excerpt, taxonomies, terms, and custom fields. WooCommerce products also deal with attributes and variations.

When a post is saved, it’s different pieces are sent to a Solr index, which will transform them, accordingly with the schema.xml index file instructions.
For instance, texts will be cut in individual words. Punctuation and meaningless words will be removed (“stopwords”). Words will be reduced to a common radical (“stemming”). Synonyms will be matched, and so one.

But, wait a minute … This is true in English, where sentences are made of words separated by white spaces and punctuation. But is it true everywhere in the world, in countries with symbol based languages ( Chinese, Japanese, Korean, Russian …) ?

It seems each language needs specific text transformations. And fortunately, Apache Solr can manage them all thanks to it’s numerous language specific filters that can be inserted in an index schema.xml.

One or several indexes ?

But we are dealing with several languages. So, should we store content in one or several indexes ? Well, this is a question WPSOLR solved for you.

One index by language is incredibly flexible

Solr multilingual one index by language
Solr multilingual one index by language

When you’re using WPSOLR with WPML or Polylang, each content is stored in it’s language index. So, the French content is stored in an index with a French tailored schema.xml to deal with accents. While the Chinese content belongs to it’s own Chinese tailored schema.xml.

Why this choice ? Because it is the most flexible. With one Solr index by language, you can tweak as much as you like each language to your needs. Not only with the schema.xml, but also with the solrconfig.xml.

Workflow to index a post type

Retrieve the Solr index for a post language
Retrieve the Solr index for a post language

 

Workflow to search results for a language

Retrieve the Solr index for a language search
Retrieve the Solr index for a language search

 

One shared index is not as flexible, and more complex

Solr multilingual with one shared index
Solr multilingual with one shared index

While with a shared index, you can certainly define specific fields with specific language filters. But at the expense of much more complexity on the client side (call field_en, or field_fr, or field_cn, depending on the language context).

And you cannot define a default search field by language, or customize the search handler with a default parameter or java plugin by language, among many other things.

 

Multilingual static content

Static content is the text contained in the php files that will build the search page results displayed to the users.

It can be the “Search” label on the search form submit button. Or the “Sort by” label of the sort drop-down-list. Or the “Next page” label in the search navigation bar.

WPSOLR is delivered with POT and PO files, that you can modify at will. You can also create your own language translation if necessary.

 

Multilingual dynamic content

Dynamic content is the text contained in the database, related to your search content, that will build the search page results displayed to the users.

For instance, the list of sort items (“Less expensive first”, “Newest first”, …). Or the list of post types (“Post”, “Page”, “Product”, “Knowledge base”, …) in facets.

WPSOLR calls WPML/POLYLANG actions/filters to retrieve a translation for the dynamic content from their respective:

  • WPML string translation module
  • Polylang string translation module
wpsolr multilingual - wpml string translation module
wpsolr multilingual – wpml string translation module

 

Which languages can be managed by WPSOLR ?

This is a list of languages officially supported by Apache Solr:

  • Arabic
  • Brazilian Portuguese
  • Bulgarian
  • Catalan
  • Chinese
  • Simplified Chinese
  • CJK
  • Czech
  • Danish
  • Dutch
  • Finnish
  • French
  • Galician
  • German
  • Greek
  • Hebrew, Lao, Myanmar, Khmer
  • Hindi
  • Indonesian
  • Italian
  • Irish
  • Japanese
  • Latvian
  • Norwegian
  • Persian
  • Polish
  • Portuguese
  • Romanian
  • Russian
  • Scandinavian
  • Serbian
  • Spanish
  • Swedish
  • Thai
  • Turkish
  • Ukrainian
Tags:multilingual searchnot reviewedPolylangWPML

Was this helpful?

3 Yes  1 No

Didn't find your answer? Contact Us

Built for brands and agencies worldwide

Adobe
Software Development
10K+ employees
Harvard University
Higher Education
798K alumni
University of Essex
Higher Education
101K alumni
Tally
Software development
501-1K employees
WebFX
Advertising Services
501-1K employees
DEFINITION 6
Advertising Services
1K-5K employees
Proto Thema
Newspaper Publishing
51-200 employees
The Fold London
Retail Apparel and Fashion
11-50 employees
Georgia-Pacific LLC
Paper and Forest Product Manufacturing
10K+ employees
Agencies, Software, Universities, Media, Newspapers, Publishers, Retails, Manufacturing, E-Commerce. And many more »

Recommended content

Powered by WPSOLR Enterprise with Recombee

Understand Where Your Store Is Losing Sales
Join our Affiliate Program!
Features
Search Hosting for WordPress
File Parsing and Chunking
Integration Hub
Search
Facets (Filters)
Search Add-ons
Recommendations
Keyword search engines
Comparison grid
Apache Solr & Solr Cloud
Elasticsearch
OpenSearch
Algolia
AI search engines
Comparison grid
PostgreSQL pgvector
Weaviate
Google Retail
Vespa.ai
OpenSearch vector
AI recommendation engines
Comparison grid
Recombee
Amazon Personalize
AI personalization engines
Comparison grid
Google Retail
Algolia
Buy and Learn
Pricing
Privacy policy
Terms and Conditions
© 2026 Eostis SARL. All Rights Reserved.
More
My licenses
Support
Documentation
Blog
Recommendations powered for you by WPSolr
Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}