Hi,
I am new to elasticsearch and have some questions, I have followed the Java Jest API to build some code into our rest API to call into elasticsearch to perform inserts and searches.
I have to display text in multiple languages in one language search..
means if i search for english language then 1 is selected language i.e english and other one german (as default )language also comes.or
if i serach in france language then both france and german text are coming from index.
So,Please suggest me what i have to do..
setting.json file
{
"index": {
"analysis" : {
"analyzer" : {
"eng_analyzer" : {
"type" : "snowball",
"language" : "English"
},"deu_analyzer" : {
"type" : "snowball",
"language" : "German"
},"arm_analyzer" : {
"type" : "snowball",
"language" : "Armenian"
},"baq_analyzer" : {
"type" : "snowball",
"language" : "Basque"
},"cat_analyzer" : {
"type" : "snowball",
"language" : "Catalan"
},"dan_analyzer" : {
"type" : "snowball",
"language" : "Danish"
},"dut_analyzer" : {
"type" : "snowball",
"language" : "Dutch"
},"fin_analyzer" : {
"type" : "snowball",
"language" : "Finnish"
},"fra_analyzer" : {
"type" : "snowball",
"language" : "French"
},"de2_analyzer" : {
"type" : "snowball",
"language" : "German2"
},"hun_analyzer" : {
"type" : "snowball",
"language" : "Hungarian"
},"iri_analyzer" : {
"type" : "snowball",
"language" : "Irish"
},"ita_analyzer" : {
"type" : "snowball",
"language" : "Italian"
},"lov_analyzer" : {
"type" : "snowball",
"language" : "Lovins"
},"nor_analyzer" : {
"type" : "snowball",
"language" : "Norwegian"
},"ptr_analyzer" : {
"type" : "snowball",
"language" : "Porter"
},"por_analyzer" : {
"type" : "snowball",
"language" : "Portuguese"
},"rum_analyzer" : {
"type" : "snowball",
"language" : "Romanian"
},"rus_analyzer" : {
"type" : "snowball",
"language" : "Russian"
},"spa_analyzer" : {
"type" : "snowball",
"language" : "Spanish"
},"swe_analyzer" : {
"type" : "snowball",
"language" : "Swedish"
},"tur_analyzer" : {
"type" : "snowball",
"language" : "Turkish"
}
}
}
}
}
If i search for english language then only english text are coming not other text are coming whatever available in other language.
If i search for german language then only german text are coming not other text are coming whatever available in other language.
and i want all other language text watever available in index.