-
Notifications
You must be signed in to change notification settings - Fork 271
Closed
Description
- django-elasticsearch-dsl==0.4.4
- Django==1.10.7
- elasticsearch==2.3.0
- elasticsearch-dsl==2.0.0
s = Document.search().filter('match', name='test')[:30]
s.to_queryset()
Raise this error
AttributeError: 'Search' object has no attribute '_source'
s.__dict__ return
{'_doc_type': ['buyer_alias_document'],
'_doc_type_map': {'buyer_alias_document': <bound method DocTypeMeta.from_es of <class 'jurismarches.buyers.documents.BuyerAliasDocument'>>},
'_extra': {},
'_fields': None,
'_highlight': {},
'_highlight_opts': {},
'_index': ['buyer_alias'],
'_model': <class 'jurismarches.buyers.models.BuyerAlias'>,
'_params': {},
'_partial_fields': {},
'_post_filter_proxy': <elasticsearch_dsl.search.QueryProxy object at 0x7fb285a9c588>,
'_query_proxy': <elasticsearch_dsl.search.QueryProxy object at 0x7fb285a9c550>,
'_response_class': <class 'elasticsearch_dsl.result.Response'>,
'_script_fields': {},
'_sort': [],
'_suggest': {},
'_using': 'default',
'aggs': AggsProxy()}
Metadata
Metadata
Assignees
Labels
No labels