Skip to main content

django-elasticmodels is a convenient tool to map your Django models to ElasticSearch mappings.

Project details

Code:

https://bitbucket.org/jvennik/django-elasticmodels

Documentation:

#

Issue tracker:

https://bitbucket.org/jvennik/django-elasticmodels/issues

License:

BSD 3-clause; see LICENSE file

Quick install

Latest released version:

$ pip install django-elasticmodels

Usage

To use django-elasticmodels in your Django project:

  1. Add 'elasticmodels' to your INSTALLED APPS setting.

  2. Add 'ELASTICSEARCH_HOST' (string)

  3. Add 'ELASTICSEARCH_MODELS' (list) >> '["yourapp.yourmodel",]' to your settings file

  4. [Optional] Add 'ELASTICSEARCH_CUSTOM_TYPES' (dict) to your settings file if you want to specify a specific field type yourself >> Example: '"geo_location": {"type": "geo_point"}'

  5. [Optional] Add 'ELASTICSEARCH_NON_MODEL_FIELDS' (list). Here you can add fields that are not present on your model >> Example: '{"snippet": {"type": "string"}}'

  6. Run ./manage.py create_indexes

Examples will be added at a later date.

Release files for django-elasticmodels 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-elasticmodels 1.0.2
File Size Uploaded
django-elasticmodels-1.0.2.tar.gz 4.9 kB Details

Release files / django-elasticmodels-1.0.2.tar.gz

Download URL django-elasticmodels-1.0.2.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ec4e7aed9f8dadb7d32d031cc0789791246fbd6be6eb5cd15bf1758f016d8e30
BLAKE2b-256 checksum
How to use checksums
e6dee47b16d6a74e64aeeef8c9f8fb72661d28e3bfbdce6296923dfe6a1da301
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file

1.0.1

1 release file

1.0

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

0.1.dev

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page