Elasticsearch integration for OneGov Cloud
Project description
Run the Tests
Install tox and run it:
pip install tox tox
Limit the tests to a specific python version:
tox -e py27
Conventions
Onegov Search follows PEP8 as close as possible. To test for it run:
tox -e pep8
Onegov Search uses Semantic Versioning
Build Status
Coverage
Latests PyPI Release
License
onegov.search is released under GPLv2
Changelog
1.7.0 (2019-04-03)
Adds tags support. [href]
1.6.2 (2019-01-14)
Improves autocomplete search results. [href]
1.6.1 (2018-09-27)
Adds the ability to stop the ORM event processing temporarily. [href]
Updates elasticsearch release. [href]
1.6.0 (2018-06-11)
Adds a date to each document to support decaying date search. [href]
1.5.1 (2018-06-01)
Drastically reduces the number of shards used. [href]
1.5.0 (2018-05-24)
Uses elasticesarch/elasticsearch-dsl 6.x releases (backwards compatible). [href]
1.4.2 (2018-04-26)
Fixes language changes resulting in duplicated documents in the search index. [href]
1.4.1 (2018-04-26)
Uses a higher timeout during reindex operations. [href]
1.4.0 (2018-04-10)
Greatly improves reindex performance (2x - 10x faster). [href]
1.3.2 (2018-03-16)
Fixes transport catching not working right. [href]
1.3.1 (2018-03-16)
Catches more connection related errors. [href]
Fixes verify_cert=False option being ignored. [href]
1.3.0 (2018-03-09)
Improves the handling of elasticsearch outages.
Now, whenver elasticsearch is offline, a SearchOfflineError is raised. During subsequent method calls to the elasticsearch client reconnects are only attempted after increasingly longer timeouts (up to 5 minutes).
This ensures that an elasticsearch outage doesn’t slow down the rest of the application as it attempts to reconnect to the server. [href]
1.2.4 (2017-12-29)
Slightly improves reindex performance. [href]
Requires Python 3.6. [href]
1.2.3 (2017-12-22)
Uses less memory during reindexing. [href]
Switches to onegov core’s custom json module. [href]
1.2.2 (2017-11-14)
Specifically excludes the broken elasticsearch 5.5.1 release. [href]
1.2.1 (2017-10-10)
Adds the ability to reindex from code. [href]
1.2.0 (2017-09-26)
Adds automatic language detection for localisable content. [href]
1.1.1 (2017-07-06)
Switch onegov.testing to onegov_testing. [href]
1.1.0 (2017-06-22)
Removes Elasticsearch 2.x string to keyword,text translation. [href]
1.0.1 (2017-05-02)
Adds a helper function to retrieve the fields registered by the mappings. [href]
1.0.0 (2017-03-28)
Drops support for Elasticsearch 2.x and adds support for Elasticsearch 5.x. [href]
0.6.4 (2016-09-21)
Adds the ability to define which request gets access to private searches. [href]
Moves some code to onegov.core. [href]
0.6.3 (2016-05-30)
Adds compatibility with onegov.core 0.21.0. [href]
0.6.2 (2016-04-29)
Fixes reindex command not working with Morepath 0.14. [href]
0.6.1 (2016-04-06)
Adds compatibility with Morepath 0.13. [href]
0.6.0 (2016-03-22)
Uses a simpler analyzer for autocompletion.
This change leads to the autocompletion working more literally. That is if we enter ‘A1’, we will find ‘A1’ and ‘A11’ but not ‘A’. Before, all numbers were stripped from the autocompletion which is not what we want because we use autocompletion quite lierally (search for FRM-1234-5678 for example). [href]
0.5.0 (2016-02-22)
Migrates to latest elasticsearch-dsl release. [href]
0.4.0 (2016-02-03)
Adds support for query explanations. [href]
0.3.2 (2016-02-02)
Fixes connection pool exhaustion occuring when reindexing many tennants. [href]
0.3.1 (2016-01-26)
Keep elasticsearch-dsl below 0.0.9 until there’s a release that supports elasticsearch 2.0.0. [href]
0.3.0 (2016-01-11)
Require elasticsearch 2.1.1 or newer. [href]
0.2.0 (2016-01-11)
Pin elasticsearch to 2.1 for now.
With 2.2 it’s no longer possible to support elasticsearch 1.0 and 2.0 with 2.x. So we have to support either or.
Currently we support Elasticsearch 1.x. Soon we’ll upgrade to 2.x and use that exclusively.
This release is therefore the last release that supports both 1.x and 2.x of elasticsearch. [href]
0.1.2 (2015-12-22)
Lowers the connection timeout to 5 seconds and uses sniff_on_connection_fail. [href]
Adds compatibility with Elasticsearch 2.1. [href]
Fixes a number of Elasticsearch 2.0 specific bugs. [href]
0.1.1 (2015-10-15)
Adds compatibility with Elasticserach 2.0. [href]
Use ‘de_CH’ translation instead of ‘de’. [href]
0.1.0 (2015-10-12)
Fixes the delete process failing under certain polymorphic configurations. [href]
Removes Python 2.x support. [href]
0.0.7 (2015-09-29)
Catch all significant errors during indexing. [href]
0.0.6 (2015-09-28)
Adds the ability to define multiple suggestion inputs per document. [href]
Adds a switch to disable elasticsearch integration. [href]
0.0.5 (2015-09-25)
The certificates of elasticsearch hosts are now verified by default. [href]
Adds completion suggestions for search-as-you-type. [href]
Fixes reindex not properly working with onegov.town. [href]
0.0.4 (2015-09-22)
Fixes localized mapping not working correctly in certain cases. [href]
Stops the reindex command to create unwanted indices. [href]
Exclude all _source fields by default. [href]
Adds support for polymorphic SQLAlchemy models. [href]
ORM Models now may use any name for their primary key attribute. [href]
0.0.3 (2015-09-18)
No longer require elasticsearch to run when configuring the application. [href]
0.0.2 (2015-09-18)
Adds the ability to reindex all elasticsearch records. [href]
Fixes a number of issues with the onegov.town integration. [href]
0.0.1 (2015-09-17)
Initial Release
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
File details
Details for the file onegov.search-1.7.0.tar.gz
.
File metadata
- Download URL: onegov.search-1.7.0.tar.gz
- Upload date:
- Size: 28.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c55df0def386e510e0824634188f26fae0cd9fe6a576b8d2c4e8a86ff10ff74 |
|
MD5 | acb50265abf0a2f7331d5ea7d11c87ce |
|
BLAKE2b-256 | ae33f2d14f466e09a228bdc9c20c6a8a21acbda1b0a3ff12ac04c5d45d6e0717 |
File details
Details for the file onegov.search-1.7.0-py3-none-any.whl
.
File metadata
- Download URL: onegov.search-1.7.0-py3-none-any.whl
- Upload date:
- Size: 30.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bed35c9616ee76cd33aeef67fb4547f1e0d6c961c8ede8298326a98bca7f364d |
|
MD5 | 0d6f6d3c5a769dbf198b06cfdf638e38 |
|
BLAKE2b-256 | 915506e873c392aad91a96a40aa0c9fa54ab93649791fe7128b7b4eeb4984c1b |