Advance painless scripting in elasticsearch

We have started using elasticsearch in our project, we are storing user data and his friend list as nested object, and nested to nested object storing friend's friend list because we required this data when we are doing global search. Now we are syncing/updating this data in real time with our database, so is this good to syncing done in real time 50-100 TPS or in future it will create problem.

We need to create complex queries for updating the data because we are managing friend list in 2nd level. so how to create advance scripting in painless, I have checked this in Google but not found anything in detail.

If my approach is wrong of doing this, please let me know.

Please Reply anyone, and suggest right way to do this.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.