Buildout recipe for Solr.
Project description
Introduction
============
.. image:: https://travis-ci.org/kitconcept/kitconcept.recipe.solr.svg?branch=master
:target: https://travis-ci.org/kitconcept/kitconcept.recipe.solr
|
.. image:: https://raw.githubusercontent.com/kitconcept/kitconcept.recipe.solr/master/kitconcept.png
:alt: kitconcept
:target: https://kitconcept.com/
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
=============
Minimal Buildout
----------------
We'll start by creating a minimal buildout that uses the recipe::
>>> write('buildout.cfg',
... """
... [buildout]
... parts = solr
...
... [solr]
... recipe = kitconcept.recipe.solr
... src = %(src)s
... """ % {
... 'src' : 'http://archive.apache.org/dist/lucene/solr/7.2.1/solr-7.2.1.tgz',
... })
The only required attribute is `src`that contains a URL of the Solr tgz file.
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
Complete Buildout
-----------------
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.0a2 (2019-03-23)
--------------------
- Make config variable optional.
[kitconcept]
1.0.0a1 (2019-02-07)
--------------------
- Initial release.
[kitconcept]
Download
========
============
.. image:: https://travis-ci.org/kitconcept/kitconcept.recipe.solr.svg?branch=master
:target: https://travis-ci.org/kitconcept/kitconcept.recipe.solr
|
.. image:: https://raw.githubusercontent.com/kitconcept/kitconcept.recipe.solr/master/kitconcept.png
:alt: kitconcept
:target: https://kitconcept.com/
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
=============
Minimal Buildout
----------------
We'll start by creating a minimal buildout that uses the recipe::
>>> write('buildout.cfg',
... """
... [buildout]
... parts = solr
...
... [solr]
... recipe = kitconcept.recipe.solr
... src = %(src)s
... """ % {
... 'src' : 'http://archive.apache.org/dist/lucene/solr/7.2.1/solr-7.2.1.tgz',
... })
The only required attribute is `src`that contains a URL of the Solr tgz file.
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
Complete Buildout
-----------------
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.0a2 (2019-03-23)
--------------------
- Make config variable optional.
[kitconcept]
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.0a2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0daa1f1d8087fa6552679b7b0363eaf1919ffc86cddafa2f133bf4134994324 |
|
MD5 | 998c757e10e600889b9eaeedd5c961c2 |
|
BLAKE2b-256 | 6a4c1d7507d55784faf180e1c4070c140e1a4254c63d4669f817e5f8644336a0 |
Close
Hashes for kitconcept.recipe.solr-1.0.0a2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 002da5f03909edb98963eed895319c99d8a1fd925a3bf1da750f6b5ef3d49ba8 |
|
MD5 | ee0dbbdd32e5098bddd3d588b6e8baa7 |
|
BLAKE2b-256 | c034230b04ce6e62df819791d8719666ad2597a4cece7d6f10ee2452b92831e5 |