parent
561f9d840a
commit
fd2122cf20
2 changed files with 5 additions and 5 deletions
|
@ -433,9 +433,9 @@ class ImageProcessor():
|
|||
def _index_strings(self):
|
||||
"""Index the extracted strings."""
|
||||
if self.config:
|
||||
self.OpenSearch = OpenSearchDataStore(
|
||||
host=self.config.ES_HOST, port=self.config.ES_PORT,
|
||||
url=self.config.ES_URL)
|
||||
self.opensearch = OpenSearchDataStore(
|
||||
host=self.config.OS_HOST, port=self.config.OS_PORT,
|
||||
url=self.config.OS_URL)
|
||||
else:
|
||||
self.opensearch = OpenSearchDataStore()
|
||||
index_name = ''.join(('es', self.image_hash))
|
||||
|
|
|
@ -83,8 +83,8 @@ class IndexSearcher():
|
|||
host=self.config.PG_HOST, port=self.config.PG_PORT,
|
||||
db_name=self.config.PG_DB_NAME)
|
||||
self.opensearch = OpenSearchDataStore(
|
||||
host=self.config.ES_HOST, port=self.config.ES_PORT,
|
||||
url=self.config.ES_URL)
|
||||
host=self.config.OS_HOST, port=self.config.OS_PORT,
|
||||
url=self.config.OS_URL)
|
||||
else:
|
||||
self.postgresql = PostgresqlDataStore()
|
||||
self.opensearch = OpenSearchDataStore()
|
||||
|
|
Loading…
Reference in a new issue