A tool to map Django models to ElasticSearch mappings
Project description
django-elasticmodels is a convenient tool to map your Django models to ElasticSearch mappings.
Project details
- Code:
- Documentation:
#
- Issue tracker:
- 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:
Add 'elasticmodels' to your INSTALLED APPS setting.
Add 'ELASTICSEARCH_HOST' (string)
Add 'ELASTICSEARCH_MODELS' (list) >> '["yourapp.yourmodel",]' to your settings file
[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"}'
[Optional] Add 'ELASTICSEARCH_NON_MODEL_FIELDS' (list). Here you can add fields that are not present on your model >> Example: '{"snippet": {"type": "string"}}'
Run ./manage.py create_indexes
Examples will be added at a later date.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-elasticmodels-1.0.2.tar.gz
.
File metadata
- Download URL: django-elasticmodels-1.0.2.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec4e7aed9f8dadb7d32d031cc0789791246fbd6be6eb5cd15bf1758f016d8e30 |
|
MD5 | d118539bb6cc4a0f2c456e996cf7719b |
|
BLAKE2b-256 | e6dee47b16d6a74e64aeeef8c9f8fb72661d28e3bfbdce6296923dfe6a1da301 |