Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cubicweb-elasticsearch-2.0.0.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

cubicweb_elasticsearch-2.0.0-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file cubicweb-elasticsearch-2.0.0.tar.gz.

File metadata

File hashes

Hashes for cubicweb-elasticsearch-2.0.0.tar.gz
Algorithm Hash digest
SHA256 befd002c5bfd3bf8843320232c19e63cc461405a667a844e536469ac5fa87f78
MD5 43d02c9c3c6746237db40e4841f3b949
BLAKE2b-256 624e86eeb20097feb229e95519e7185458fece49610288b3b9f00a83bee53852

See more details on using hashes here.

File details

Details for the file cubicweb_elasticsearch-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cubicweb_elasticsearch-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04870b1e5805986034fdb6000ebfe04fc1d089e30e3ec2cecc76358cfd0ca8ac
MD5 fc1451c424cc7cc89b3255155eed6779
BLAKE2b-256 f140b80ca630c4c0565c509cf8395764419676a24eab5fb36c17b6f69a8312e9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page