For all BM25Search instatiations that use Elastic search, I'm getting the following error on both Ubuntu 18.04 and 20.04:
File "/home/jaxball/anaconda3/envs/pytorch/lib/python3.7/site-packages/elastic_transport/_transport.py", line 334, in perform_request
request_timeout=request_timeout,
File "/home/jaxball/anaconda3/envs/pytorch/lib/python3.7/site-packages/elastic_transport/_node/_http_urllib3.py", line 199, in perform_request
raise err from None
elastic_transport.ConnectionError: Connection error caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x7fb774790ed0>: Failed to establish a new connection: [Errno 111] Connection refused)
I simply replaced the hostname with http://localhost:9200 and index name with scifact. This fails for multiple files i.e. evaluate_bm25.py or train_bm25_hardnegs.py so I suspect my ES is not setup correctly. Any ideas how to fix this?
For all
BM25Search
instatiations that use Elastic search, I'm getting the following error on both Ubuntu 18.04 and 20.04:I simply replaced the
hostname
withhttp://localhost:9200
and index name withscifact
. This fails for multiple files i.e.evaluate_bm25.py
ortrain_bm25_hardnegs.py
so I suspect my ES is not setup correctly. Any ideas how to fix this?