Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make creation of label index optional #490

Merged
merged 1 commit into from
Oct 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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