答案 0 :(得分:1)
我知道这是一个较晚的答案,但是我偶然遇到了同样的问题,并且
sudo a2enmod php7.x
(php 7.x是实际的php版本) 解决了我的问题(显然php已更新,而Apache中未启用新版本)
答案 1 :(得分:0)
如果您已安装PHP,可以通过编辑 curl -XPOST "htturl -XPOST "http://localhost:9200/ind_ahor_fin_ult1/_search" -d'
{"query": {"bool": {"minimum_should_match": 5,
"should": [{"terms": {"renta": "1"},"boost": 4}]}}}'
{"error":{"root_cause":[{"type":"query_parsing_exception","reason":"[terms] query does not support [renta]","index":"ind_ahor_fin_ult1","line":3,"col":35}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"ind_ahor_fin_ult1","node":"j20MAn_OQ9eRyNsrjf1MRQ","reason":{"type":"query_parsing_exception","reason":"[terms] query does not support [renta]","index":"ind_ahor_fin_ult1","line":3,"col":35}}]},"status":400}
来解决此问题,并在文件底部添加以下行:
/etc/apache2/apache2.conf
请务必在保存更改后重新启动Apache。