0

我正在尝试使用外部数据包装器,添加服务器、触发器和其他先决条件,但是当我尝试插入条目时,出现以下错误。

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 **********
4

1 回答 1

0

问题在于主机连接到弹性搜索。我的主机和端口被错误地安装到 postgresql 中

于 2017-05-30T10:08:12.213 回答