I am using elastic search 1.7.1 and when i am trying to use script_score or script_fields it is showing the error ScriptException[scripts of type inline], operation [search] and lang [groovy] is disabled can anyone please tell me how can i remove this error. my code is given below
fields: [ 'shop_name']
script: "_score * doc['location'].value"
script.engine.groovy.inline.search: on to
elasticsearch.yml configuration file and restart the node.