Answer the question
In order to leave comments, you need to log in
Storing data in ElasticSearch?
I use ElasticSearch as my main data store. The question is how to store additional information about the user in it.
There are currently 2 indexes
socket-apps-db : {
users: {
"user_id" : {
"login" : "user_login",
"email": "user_email",
"password" : "user_password",
}
}
}
socket-apps-{game_name}-cloud : { // {game_name} - Название игры, для которой облако
"data" : {
"user_id" : {
"level" : 5,
"cloud": "{cloud_data}"
}
}
}
Answer the question
In order to leave comments, you need to log in
It is not necessary to store the main database there - this is a search engine, and not a normal database, after all) it is not suitable for this. But if you feel like it, then treat it like it's document-oriented
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question