I from relational database background. In MySQL we use to store datas in database based on conditions for requirements.We used to write script that is stored procedures .Using stored procedure we used to store datas and updated database.If we call that script using as single name it does all the opearations written in the script based on our input to scripts.
Then help me out to write code in elasticsearch as that above stored script(stored procedure) that multiple operations.
You will need to implement the logic outside Elasticsearch. If you have a front end connect directly to Elasticsearch instead of via a server process I guess that is where you need to put it. I might however be easier to introduce an intermediate layer.
Create a server process in the programming language of your choice and have the front end connect to this instead of directly to Elasticsearch. You can then implement more complex logic there and keep this out of your front end.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.