Multiple geopoint & multilanguage document

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.

I refresh this question.

I have tons of data in a complex many to many relationship through a join
model, assuming that it is a MySQL database. But in reality, data will be
stored in the graph db as arangodb or neo4j

[Model A: multi langual text] -> [Join Model: reference keys and additional
fields] <- [Model B: geolocation, address, ..]

My application needs to search for the nearest location from the Model B,
then to find a text in the Model A, which is connected to the Model B.

I know that for each connection can create an entry in the ES, but it gives
me an enormous number of identical text documents where the only difference
is in the data from the Model B and Join Model. Please note that any
document of Model A may be over 2MB in size.

I want to ask, is it possible to create an EC entry as I described above
(See the first post)?

So save tons of locations in a single document, with associated
multilingual Text?

Thank you.

--
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/169ff2c3-69b2-4490-925b-ae0f5aab5052%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.