Skip to content
项目

django-es/django-elasticsearch-dsl

在 GitHub 查看

关于

这是一个使用 elasticsearch-dsl-py 将 Django 模型编入 Elasticsearch 索引的软件包。

网站与应用开发

这些数字如何统计

可以做什么

  • Based on elasticsearch-py so you can make queries with the Search class.
  • Django signal receivers on save and delete for keeping Elasticsearch in sync.
  • Management commands for creating, deleting, rebuilding and populating indices.
  • Elasticsearch auto mapping from django models fields.

实测星标增长

24小时
0
7天
0
15天
-1
1个月
-1

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Django Elasticsearch DSL

https://codecov.io/gh/django-es/django-elasticsearch-dsl/coverage.svg?branch=master https://readthedocs.org/projects/django-elasticsearch-dsl/badge/?version=latest&style=flat

Django Elasticsearch DSL is a package that allows indexing of django models in elasticsearch. It is built as a thin wrapper around elasticsearch-py so you can use all the features developed by the elasticsearch-py team.

You can view the full documentation at https://django-elasticsearch-dsl.readthedocs.io

Features

  • Based on elasticsearch-py so you can make queries with the Search class.

  • Django signal receivers on save and delete for keeping Elasticsearch in sync.

  • Management commands for creating, deleting, rebuilding and populating indices.

  • Elasticsearch auto mapping from django models fields.

  • Complex field type support (ObjectField, NestedField).

  • Index fast using parallel indexing.

  • Requirements

    • Django >= 4.2
    • Python 3.9, 3.10, 3.11, 3.12, 3.13

Elasticsearch Compatibility: The library is compatible with all Elasticsearch versions since 5.x but you have to use a matching major version:

  • For Elasticsearch 9.0 and later, use the major version 9 (9.x.y) of the library.
  • For Elasticsearch 8.0 and later, use the major version 8 (8.x.y) of the library.
  • For Elasticsearch 7.0 and later, use the major version 7 (7.x.y) of the library.
  • For Elasticsearch 6.0 and later, use the major version 6 (6.x.y) of the library.
# Elasticsearch 9.x
elasticsearch>=9.0.0,<10.0.0

# Elasticsearch 8.x
elasticsearch-dsl>=8.0.0,<9.0.0

# Elasticsearch 7.x
elasticsearch-dsl>=7.0.0,<8.0.0

# Elasticsearch 6.x
elasticsearch-dsl>=6.0.0,<7.0.0

探索相关项目

加载中…