Skip to content

Commit

Permalink
Make creation of label index optional (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
tholor authored Oct 15, 2020
1 parent 974b37e commit ceb5c87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions haystack/document_store/elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ def __init__(
self.faq_question_field = faq_question_field

self.custom_mapping = custom_mapping
self.index: str = index
self.label_index: str = label_index
if create_index:
self._create_document_index(index)
self.index: str = index
self._create_label_index(label_index)

self._create_label_index(label_index)
self.label_index: str = label_index
self.update_existing_documents = update_existing_documents
self.refresh_type = refresh_type
if similarity == "cosine":
Expand Down

0 comments on commit ceb5c87

Please sign in to comment.