Hello everyone,
I need advice.
For the purposes of the project, I need to search near me locations based
on phrases entered by the user in smart phones.
The problem: a phrase or text can be translated into hundreds of languages
and can be a tagged on hundreds of thousands of locations.
I would like search results to be fast and efficient, at the same time I
want to avoid duplication of the text.
So I imagined documents organized in this way:
{
"locations":[
{
"address": "address here..",
"location": "40.715, -74.011"
},
{
"address": "address here..",
"location": "44.715, -76.011"
},
{
"address": "address here..",
"location": "96.715, 45.011"
},
// NEXT 100.000 location
],
"messages":[
{
"eng":{"title":"English title", "body":"body text.."},
"fra":{"title":"French title", "body":"body text.."},
"spa":{"title":"------ title", "body":"body text.."},
"deu":{"title":"------ title", "body":"body text.."},
"ned":{"title":"------ title", "body":"body text.."},
"por":{"title":"------ title", "body":"body text.."},
"arb":{"title":"------ title", "body":"body text.."},
// NEXT 100 translations in the different languages
}
]
}
Is this the correct way?
Also, the number of locations will change frequently. If I have a document
with a couple of hundred of thousands of locations, how fast is the update
of this document?
Thanks
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/83580d74-45fb-429a-a0a9-81c25a165d29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.