小编pal*_*alo的帖子

Django haystack与elasticsearch,索引问题

我使用带有弹性搜索的django-haystack,但索引存在问题.重建我的索引时

 python manage.py rebuild_index 
引发以下错误:

Traceback (most recent call last):
  File "/home/palo/.virtualenvs/toro/local/lib/python2.7/site-packages/haystack/management/commands/update_index.py", line 210, in handle_label
    self.update_backend(label, using)
  File "/home/palo/.virtualenvs/toro/local/lib/python2.7/site-packages/haystack/management/commands/update_index.py", line 256, in update_backend
    do_update(backend, index, qs, start, end, total, self.verbosity)
  File "/home/palo/.virtualenvs/toro/local/lib/python2.7/site-packages/haystack/management/commands/update_index.py", line 78, in do_update
    backend.update(index, current_qs)
  File "/home/palo/.virtualenvs/toro/local/lib/python2.7/site-packages/haystack/backends/elasticsearch_backend.py", line 177, in update
    self.conn.bulk_index(self.index_name, 'modelresult', prepped_docs, id_field=ID)
  File "/home/palo/.virtualenvs/toro/src/pyelasticsearch/pyelasticsearch/client.py", line 95, in decorate
    return func(*args, query_params=query_params, **kwargs)
  File "/home/palo/.virtualenvs/toro/src/pyelasticsearch/pyelasticsearch/client.py", line 366, in bulk_index
    query_params=query_params)
  File "/home/palo/.virtualenvs/toro/src/pyelasticsearch/pyelasticsearch/client.py", line 221, in send_request
    **({'data': request_body} if body else {}))
  File "/home/palo/.virtualenvs/toro/src/requests/requests/sessions.py", …

django-haystack elasticsearch

6
推荐指数
1
解决办法
3232
查看次数

标签 统计

django-haystack ×1

elasticsearch ×1