Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lugensa/scorched
Sunburnt offspring solr client
https://github.com/lugensa/scorched
Last synced: about 1 month ago
JSON representation
Sunburnt offspring solr client
- Host: GitHub
- URL: https://github.com/lugensa/scorched
- Owner: lugensa
- License: mit
- Created: 2014-03-11T08:09:34.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2022-03-21T10:39:53.000Z (almost 3 years ago)
- Last Synced: 2024-09-15T11:07:43.617Z (4 months ago)
- Language: Python
- Homepage:
- Size: 719 KB
- Stars: 27
- Watchers: 3
- Forks: 19
- Open Issues: 21
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE
Awesome Lists containing this project
README
Scorched
========Scorched is a sunburnt offspring and like all offspring it tries to make
things better or at least different.Git Repository and issue tracker: https://github.com/lugensa/scorched
Documentation: http://scorched.readthedocs.org/en/latest/
.. |travisci| image:: https://travis-ci.org/lugensa/scorched.png
.. _travisci: https://travis-ci.org/lugensa/scorched.. image:: https://coveralls.io/repos/lugensa/scorched/badge.png
:target: https://coveralls.io/r/lugensa/scorched|travisci|_
.. _Solr : http://lucene.apache.org/solr/
.. _Lucene : http://lucene.apache.org/java/docs/index.htmlFollowing some major differences:
- No validation of queries in client code (make code much more lightweight)
- Send and receive as json. (Faster 20k docs from 6.5s to 1.3s)
- API is more lightweight e.g. ``add`` consumes now only dicts.
- Wildcard search strings need to be explicitly set.
- Python 3
- Drops support for Solr < 4.3.0
- ...
Local testing
=============We changed to pytest and pytest-docker to spin-off
the tests.The account on your os under which you run the tests
should have permissions to start docker processes.First checkout the sources::
https://github.com/lugensa/scorched.git
Now use tox for testing::
cd scorched
toxAdditionally use pytest directly::
cd scorched
python3.10 -mvenv .
./bin/pip install -e .[test]
./bin/pytest ./scorchedRunning the tests will start a solr-8.11.1 in docker
(see scorched/tests/docker-compose.yml).