Skip to main content
Solr 5.0.0 is easy to deploy with cloud Cores and automatic managed-schema but no more schema.xml file to copy.

Solr 5.0.0 can edit a core's configuration via with the Schema REST API.

Solr 5.0.0 breaked Haystack version 2.3.1 because it uses managed-schema by default and removes the need to copy a schema.xml file.
It also provide a ``bin/solr`` command that start and a Solr daemon service, or administrate the Cores.

This what the  ``manage.py solr`` command provided by this Django App

# Install

After cloning this repository

mkvirtualenv django-hasytack-solr-commands
cd django-haystack-solr-commands
pip install -r requirements.txt

You will need **wget, tar, rm**

Configure Haystack and this app by adding at to your server settings.py to following:

HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.solr_backend.SolrEngine',
'URL': 'http://127.0.0.1:8983/solr/haystacksolrcommandsexamplecore/',
},
}

SOLR_DIRECTORY = "."
SOLR_VERSION = "5.0.0"
SOLR_CORE = 'haystacksolrcommandsexamplecore'

Add ``haystack_solr_commands`` to your INSTALLED_APPS

# Versions tested:

- Python 2.7
- Django 1.4+
- Haystack 2.3.1 with Solr 5.0.0 support from https://github.com/Stupeflix/django-haystack
- Search engine used : Solr 5.0.0 with the latest pysolr
- Oracle Java JVM version 7 or 8

# About Solr 5.0.0

What major changes in 5.0.0 breaks Haystack 2.3.1 apart from the schema.xml and the daemon service start and stop commands ?

Quoting CHANGES.txt in the 5.0.0 distribution :
```
* The following legacy numeric and date field types, deprecated in Solr 4.8, are no
longer supported: BCDIntField, BCDLongField, BCDStrField, IntField, LongField,
FloatField, DoubleField, SortableIntField, SortableLongField, SortableFloatField,
SortableDoubleField, and DateField. Convert these types in your schema to the
corresponding Trie-based field type and then re-index. See SOLR-5936 for more
information.
```
**Sortable*Fields** have been replace with their equivalent **Trie*Field**

Since 4.8.0, Apache Solr now requires Java 7 or greater (recommended is Oracle Java 7 or OpenJDK 7, minimum update 55; earlier versions have known JVM bugs affecting Solr).
Apache Solr is fully compatible with Java 8.

Metadata

Release files for django-haystack-solr-commands 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-haystack-solr-commands 0.1
File Size Uploaded
django-haystack-solr-commands-0.1.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-haystack-solr-commands 0.1
File Interpreter ABI Platform
django_haystack_solr_commands-0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 8.4 kB

Release files / django-haystack-solr-commands-0.1.tar.gz

Download URL django-haystack-solr-commands-0.1.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
449cbdccfa5a853c8ed31ed0fdbcc89fd6d4cf290e5d3ff05180384530754f82
BLAKE2b-256 checksum
How to use checksums
c8f369a1c0a52576cb6c404aab3d106be996c0a4bf478f720209a008df2fc2c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_haystack_solr_commands-0.1-py2.py3-none-any.whl

Download URL django_haystack_solr_commands-0.1-py2.py3-none-any.whl
Size 5.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
53e9f174ca7254b37098c71e3586b6d6172c479bf2dfcae991c3dd9cf50b1305
BLAKE2b-256 checksum
How to use checksums
3925771268c666bcc9df8ae2a1dd5e33fda2121ccdc5f20c64ec90dd2674f794
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page