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-0.14.0.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cubicweb_elasticsearch-0.14.0-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cubicweb-elasticsearch-0.14.0.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for cubicweb-elasticsearch-0.14.0.tar.gz
Algorithm Hash digest
SHA256 393277b42ca0c24489ecc5bd2038816a7790dcaca5457cc76f5fe9e2a4b9054c
MD5 1d5f83727344b021986eac8cf6d47828
BLAKE2b-256 a5cd0da6994c1a2945d4b175d85b7cfaf18e14de18e9c7045cc575f9e61ab5ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cubicweb_elasticsearch-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55481eb88d797cefbfaf0325ea06d92c392e6ce9c074cd1e0c2bac6abf80a3a9
MD5 19ca344707556ac3d2236b17935afeb4
BLAKE2b-256 35963c585dfaa1d00abd1087c3695ab9bd5690c61b5a731066d9a861ef33429a

See more details on using hashes here.

Supported by

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