python 2.7 - django haystack with elastic search - raise BulkIndexError -


i getting issue " raise bulkindexerror while running python manage.py rebuild_index ?

here haystack configuration in settings.py file

haystack_connections = { 'default': {     'engine': 'haystack.backends.elasticsearch_backend.elasticsearchsearchengine',     'url': 'http://127.0.0.1:9200/',     'index_name': 'haystack',     #'silently_fail': false, }, 

}

haystack_signal_processor = 'haystack.signals.realtimesignalprocessor'

here search_indexes.py

class productindex(indexes.searchindex, indexes.indexable): text = indexes.charfield(document=true, use_template=true) content_auto = indexes.edgengramfield(model_attr='title')  def get_model(self):     return product  def index_queryset(self, using=none):     return self.get_model().objects.all() 

here views.py

def search_titles():  products = searchqueryset().autocomplete(content_auto=request.post.get('search_text', ''))  return render_to_response('sea.html', {'products':products}) 

when try indexing product model ran command

python manage.py rebuild_index

, has not indexed. raises

file "/home/documents/swamy/project/env/local/lib/python2.7/site-packages/elasticsearch/helpers/init.py", line 156, in streaming_bulk raise bulkindexerror('%i document(s) failed index.' % len(errors), errors) elasticsearch.helpers.bulkindexerror: ('500 document(s) failed index.'

this error.

my model has 21000 products, can 1 fix issue ? in advance !

elasticsearch changed way bulk indices created. can use version 1.4.0 works seamlessly django-haystack.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -