-
Notifications
You must be signed in to change notification settings - Fork 271
Open
Description
I create a Document as below :
@registry.register_document
class QuestionDocument(Document):
name = fields.CompletionField(
attr='title'
)
class Index:
name = 'questions'
class Django:
model = QuestionModel
fields = ['text', 'title']
And then try to perform a suggest query with completion as following:
matched_questions = list(QuestionDocument.search().suggest("suggestions", word, completion={'field': 'name'}).execute())
But i get error regarding that name is not a completion suggest field.
elasticsearch.exceptions.RequestError: RequestError(400, 'search_phase_execution_exception', 'Field [name] is not a completion suggest field')
Metadata
Metadata
Assignees
Labels
No labels