Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8631575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:14:16+00:00 2026-06-12T09:14:16+00:00

I have the following Tire mappings on a Rails model: mapping do indexes :name,

  • 0

I have the following Tire mappings on a Rails model:

   mapping do

     indexes :name, analyzer: 'arabic', boost: 10

     indexes :city_name, analyzer: 'arabic', boost: 5

     indexes :description, analyzer: 'arabic' 

   end

What is the best way to be able to have multiple languages covered (if I want to add English or something else)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:14:16+00:00Added an answer on June 12, 2026 at 9:14 am

    What matters is that you will need to index data using specific fields for each language.
    Each field on which you want to apply language depending text analysis (stemming, stopwords, synonyms and so on) will need a specific mapping depending on the language itself. Let’s say you have a title and a content field, you are going to need a couple of those fields for each language.
    Then you can decide to index all your documents on the same index, same type, and adding a field containing the language. Otherwise you can index each language as a different type, which would be underneath the same as the first option, but you wouldn’t need to manually specify the language filter at query time. The filter would be “automatically” applied as long as you specify the language as type within the url like this:

    curl -X GET http://localhost:9200/index/en/_search -d '{
      "query" : {"match_all" : ""}
    }
    

    Otherwise you could also use a different index for each language. It really depends on your data, how big the index it’s going to be (how many documents per language?) and how you are going to make queries (always by language or can you mix different languages for instance?).

    Also, the Data desing patterns talk that Shay recently gave at Berlin Buzzwords might be interesting for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following setup. from django.db import models from django.contrib.auth.models import User class Event(models.Model):
I have following XML string: <persons> <person> <name>Someone</name> <age>27</age> </person> <person> <name>Otherone</name> <age>43</age> </person>
I have following code var res = from c in model.Data select new object[]
I have following get_authors_list function in one of my Codeigniter model function get_authors_list($limit,$offset){ $data
I have following table structure in my DB ID Name -------------------------- ID_1 Name1 ID1
I have the following tire sizes in my database, all formatted in different ways.
I have the following array for tire sizes: Array ( [0] => 155 [1]
i have following XML <Queue> <UserName>UserName</UserName> <Type>1</Type> <Portal name=Portal1> <IndexesForSelect> <Index>Index1</Index> <Index>Index2</Index> </IndexesForSelect> </Portal>
I have following configuration file - <hibernate-configuration> <session-factory name=HibernateSessionFactory> <property name=hibernate.connection.driver_class>com.mysql.jdbc.Driver</property> <property name=hibernate.connection.password>mysql</property> <property
I have following code that does a name check in a worksheet collection and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.