Buildout recipe for Solr.
Project description
Introduction
Buildout recipe for Solr.
Supported options
The recipe supports the following options:
- src (required)
Source of the Solr download (e.g. “http://archive.apache.org/dist/lucene/solr/7.2.1/solr-7.2.1.tgz”).
- port (default: 8983)
Solr port
- solr-config
Path to a Solr configuration directory that contains a “core.properties” file and a “data” and “conf” directory.
- solr-core-name (default: plone)
Name of the Solr core. Default is ‘plone’.
Example usage
We’ll start by creating a buildout that uses the recipe:
>>> write('buildout.cfg', ... """ ... [buildout] ... parts = solr ... ... [solr] ... recipe = kitconcept.recipe.solr ... src = %(src)s ... port = %(port)s ... solr-config = %(solr-config)s ... solr-core-name = %(solr-core-name)s ... """ % { ... 'src' : 'http://archive.apache.org/dist/lucene/solr/7.2.1/solr-7.2.1.tgz', ... 'port' : '8983', ... 'solr-config': 'config', ... 'solr-core-name': 'solr-core-plone', ... })
Running the buildout gives us:
>>> buildout_output_lower = system(buildout).lower() >>> "installing solr" in buildout_output_lower True >>> import os >>> current_path = os.path.dirname(os.path.realpath(__file__)) >>> full_path = os.path.join(current_path, 'parts/solr/bin/solr') >>> os.path.exists(full_path) True >>> full_path = os.path.join(current_path, 'parts/solr/server/solr/plone') >>> os.path.exists(full_path) True
Detailed Documentation
Contributors
- Note: place names and roles of the people who contribute to this package
in this file, one to a line, like so:
Timo Stollenwerk (kitconcept GmbH)
Change history
Changelog
1.0.0a1 (2019-02-07)
Initial release. [kitconcept]
Download
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for kitconcept.recipe.solr-1.0.0a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78cc98a5bf8faf4ba83f1a71eb2bf6c85a061dc4c02a1947e568d7f07da4044f |
|
MD5 | a1056b2a236215f1634aacf1027138fe |
|
BLAKE2b-256 | 283c79b2944b8f7df5da52737d2fc34ab9d7adf35ac74ccb4bb9086638af9685 |
Close
Hashes for kitconcept.recipe.solr-1.0.0a1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9e86c3b31d4f72c63ae842b4c0582008668ada72c67b405ce3148099f17a1a8 |
|
MD5 | d7e2a73c8d571bad69b218905b4f9a7e |
|
BLAKE2b-256 | ce41a94bdf637fd3108936d0847d9f868996f81a37a301f0c4368d35dd30d56a |