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.9.2.tar.gz (24.4 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.9.2-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cubicweb-elasticsearch-0.9.2.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for cubicweb-elasticsearch-0.9.2.tar.gz
Algorithm Hash digest
SHA256 a5eb23f696a0aadc743d7bbfa78bc751b1851607bd931bb5c8b2cca770c4bb73
MD5 263c25fc92c4c3c14816005803de7bd1
BLAKE2b-256 3c261231a3cfaa93f9ba70b879bd913c90dbfd57e596831d477f054e07ebe188

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cubicweb_elasticsearch-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 23.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for cubicweb_elasticsearch-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e8b48e6ef7344fdcc471bf5bfd0cbebd596d5057e57f83f79a7cee2744fcbb63
MD5 827a3f2a4c3495f63fb883c34b11c821
BLAKE2b-256 c290085934e82fd052ac0786071d079c20e406a3e9df30ce6a86415687618bb5

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