Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
django-haystack-solr-commands
Advanced tools
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
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
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.
FAQs
django management command 'solr' all-in-one for Solr 5
We found that django-haystack-solr-commands demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.