Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added example settings for Solr 6.X in tutorial.rst.
The url setting has to include the core, at least in my setup, otherwise:
pysolr.SolrError: Solr responded with an error (HTTP 404)
I think that the change occurred since Solr 5.X but I'm unsure, see https://stackoverflow.com/questions/29361639/django-haystack-failed-to-add-documents-to-solr-reason-error-404-not-found
I must say that the docs explaining the old Solr 4.X installation were a lot smoother experience for me. The lines
./manage.py build_solr_schema --configure-directory=<CoreConfigDif> --reload-core
didn't work for me, resulting inmanage.py build_solr_schema: error: argument -r/--reload-core: expected one argument
I had to run
./manage.py build_solr_schema --configure-directory=<CoreConfigDif>
and reload core and restart solr separately. If others are reporting the same problems, I suggest changing the docs.Also, I think that the Solr 4.X way of creating the schema.xml and solrconfig.xml locally and then moving them was easier to explain and its also safer to save a copy of these files in your project. Users that are using the
more like this
orspelling suggestions
will also need to edit these files, so again, I think it's better that the the installing_search_engines.rst won't useconfigure-directory
.Setup:
django-haystack 2.8.1
django 2.0.4
solr: 6.6.3
debian 9