我在ElasticSearch中的查询:
'filter':{
'script':{
'script':'_source.brand == \"samsung galaxy\"'
}
}
我得到的错误:
{
"shard": 0,
"index": "test_database",
"node": "yHIFcx8LQzCJHFYydcpdgA",
"reason": {
"type": "script_exception",
"reason": "scripts of type [inline], operation [search] and lang [groovy] are disabled"
}
}
]
},
"status": 500
}
最佳答案
您需要在elasticsearch.yml
中添加enable dynamic scripting,然后重新启动您的节点。将此添加到您的配置文件:
script.inline: true
关于json - 为什么在Elasticsearch中执行此查询时出现错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/37345608/