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.11.3.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.11.3-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cubicweb-elasticsearch-0.11.3.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for cubicweb-elasticsearch-0.11.3.tar.gz
Algorithm Hash digest
SHA256 d1907c9c6c7b9abe117fd57605d6a7ec6d1ee5cafc603806e33ffd1029a98bbb
MD5 8b9bdffa4e6a960a588fca9f025d7dda
BLAKE2b-256 e37584ec7ad3d5c974b1f71dc355bbd48289f9dd29eaa7f222925a0fb080f652

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cubicweb_elasticsearch-0.11.3-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for cubicweb_elasticsearch-0.11.3-py3-none-any.whl
Algorithm Hash digest
SHA256 578d7837df2c21b68d3e4f749131cc13b834ba9cf0a266b18d739394360c8515
MD5 580fab4f86ad99293c66fdb35e37c46e
BLAKE2b-256 a3ef7738161b6887c6381866ebc1aa7e5f3a5b55f1fc3b88f324c65e92583a05

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