Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 469 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 469 Bytes

DRF ElasticSearch

Example

Download project

git clone https://github.com/bultakov/DRF-ElasticSearch.git
cd DRF-ElasticSearch
python manage.py shell
from search.documents import ProductDocument

products = ProductDocument.search().query('match', name='mahsulot')
for product in products:
    print(f"Name: {product.name}, Type: {product.product_type}")