Please help me with how to search Elastic

Could you open a new question and also format your code?