我正在尝试使用外部数据包装器,添加服务器,触发器和其他先决条件,但是当我尝试插入条目时,我得到以下错误。
ERROR: INDEX for /test/media/2 and document {'description':
u'dffffff', 'tags': u'{aa,ss}', 'title': u'ddd', 'score': None,
'query': None} failed:
ConnectionError(<urllib3.connection.HTTPConnection object at
0x7f6df9b82e90>: Failed to establish a new connection: [Errno -2]
Name or service not known) caused by:
NewConnectionError(<urllib3.connection.HTTPConnection object at
0x7f6df9b82e90>: Failed to establish a new connection: [Errno -2]
Name or service not known)
CONTEXT: SQL statement "INSERT INTO media_es
(
id,
title,
description,
tags
)
VALUES
(
NEW.id,
NEW.title,
NEW.description,
NEW.tags
)"
PL/pgSQL function index_media() line 3 at SQL statement
********** Error **********
答案 0 :(得分:0)
问题是主机连接到弹性搜索。 我的主机和端口未正确安装到postgresql