Simple ElasticSearch indexing integration for CubicWeb
Project description
Summary
Simple ElasticSearch indexing integration for CubicWeb
Parameters
elasticsearch-locations (CW_ELASTICSEARCH_LOCATIONS)
index-name (CW_INDEX_NAME)
elasticsearch-verify-certs (CW_ELASTICSEARCH_VERIFY_CERTS)
elasticsearch-ssl-show-warn (CW_ELASTICSEARCH_SSL_SHOW_WARN)
Pyramid debug panel
To activate the debug panel, you’ll need to install pyramid_debugtoolbar, typically with:
pip install pyramid_debugtoolbar
Then, you’ll have activate the debug toolbar and include the ElasticSearch panel in your pyramid.ini:
- pyramid.includes =
pyramid_debugtoolbar
- debugtoolbar.includes =
cubicweb_elasticsearch.pviews.espanel
Alltext field
The cubicweb_elasticsearch.search_helpers.compose_search referencies a custom alltext field which contains all indexed text. This field must be defined in the custom Indexer mapping.
HTTPS and SSL certificates in communication with server
In some cases (ElasticSearch Kubernetes deployment for example), self signed certificates are used and can be ignored using elasticsearc-verify-certs, in this case, the python binding will issue warnings for each request, which is cumbersome when running requests in a ccplugin command. You can use elasticsearch-ssl-show-warn (CW_ELASTICSEARCH_SSL_SHOW_WARN) to remove those warnings (default is to show them). Most of the time, a better solution is to have proper certificates to authenticate the servers you are talking to.
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
Hashes for cubicweb-elasticsearch-0.13.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 285fe2a3529ecc65d5c15a2487da44cdceb5c8f15fb1d10c2ba1f56f480a47ca |
|
MD5 | 9ff301ed7413fb3b89c440d9e8c3ac2b |
|
BLAKE2b-256 | 8f387fd2a26bfc2d98e5cc0ab2f1ad6881d9b84f2712d690670e23a6ef1eabdc |
Hashes for cubicweb_elasticsearch-0.13.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5aea640d7790b130fdc8ee9fa7d862b27dc11fe634c8a456746021a443a500a1 |
|
MD5 | c7917cc2ed57aac7b8a747440773244f |
|
BLAKE2b-256 | a5c9654e0e75aa143115379324bff230a812753a87a8d515e7088ffc6a0dc550 |