A tool to map Django models to ElasticSearch mappings
Project description
django-elasticmodels is a convenient tool to map your Django models to ElasticSearch indexes.
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
Hashes for django-elasticmodels-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed548de3f14a59b0d48eb78bf1fabb8de524610c9fb5236350791e5d43936391 |
|
MD5 | f65914c80808f0d8b96f1d60caeef948 |
|
BLAKE2b-256 | 5db1c30f9bc551b0ae34948fdcf6557d77212cd4ba1edb3c84b84afdc3c080d3 |