Skip to content

seljin/ded-should-index-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

ded-should-index-example

requirements :

  • Running elasticsearch
  • Python virtualenv

How to test :

pip install -r requirements.txt

Change ELASTICSEARCH_DSL['default']['hosts'] in settings.py

./manage.py migrate

./manage.py shell

from pizzeria.models import Pizza
pizza = Pizza.objects.first()
pizza.save()

curl http://elasticsearch-hostname:9200/pizzas/_search/

Our pizza is indexed, everything is fine

pizza.delete()

We can see should_index_object print no toppings and False
Which is normal in django ways but our pizza is still indexed while not existing in database

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages