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
Hashes for django-elasticmodels-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 971ad4ba72ac7d359ac528dfa7b38dfb8f563a720ba31fdec527e4845b14e485 |
|
MD5 | 41c40afb1e5ba437d07b61e1a58ac169 |
|
BLAKE2b-256 | 2a7f91d2f1e20631a9004b8814da17fa43e973594261edd9c60161b848501da6 |