Well as the error message is telling you, ‘bulk_indexing’ is not defined in the context that you’re trying to run it in. Meaning: you probably didn’t import the bulk_indexing() function after entering the Django shell.

You should from elasticsearchapp.search import bulk_indexing and then try running bulk_indexing() while in the shell.

Javascript developer. Passionate learner.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store