Falha ao adicionar documentos ao Solr: [Motivo: erro 404 não encontrado]
Estou tentando indexar um modelo no Solr com o django-haystack, mas ele me retorna o seguinte erro (ao usar o rebuild_index ou update_index):
Failed to add documents to Solr: [Reason: Error 404 Not Found]
Isso é search_indexes.py
from haystack import indexes
from haystack.indexes import SearchIndex
from jobpost.models import *
class JobIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
post_type = indexes.CharField(model_attr='post_type')
location = indexes.CharField(model_attr='location')
job_type = indexes.CharField(model_attr='job_type')
company_name = indexes.CharField(model_attr='company_name')
title = indexes.CharField(model_attr='title')
def get_model(self):
return jobpost
def index_queryset(self,**kwargs):
return self.get_model().objects.all()
conexão haystack:
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.solr_backend.SolrEngine',
'URL': 'http://127.0.0.1:8983/solr',
'SITECONF': 'jobpost.search_sites'
},
}
Eu tenho gerado schema.xml muitas vezes reiniciado solr..placed em solr / conf.não sei qual é a isuue