[REFACTOR] Cleaned up the `Index#store` method
[REFACTOR] Cleaned up the `Index#store` method

* Restructure the code
* Use `params` Hash to encode URL parameters for elasticsearch
* Prepare solving #256 in a more robust way

zaharpecherin/retire,doximity/tire,brijeshgpt7/retire,tklee/tire_shiphawk,alphagov/tire,iamrahulroy/retire,elbuo8/retire,rubydubee/retire,HenleyChiu/tire,dbose/retire,fabn/retire,ChapterMedia/tire,mavenlink/retire,karmi/retire,Telmate/tire,1776/tire