You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stepping through things in a debugger takes me into fake_elasticsearch.py where I can see the documents are never added to the internal dictionary. It's almost as if some indentation got messed up.
So far, so good. But that's where it stops. I mean, everything else that needs to happen is found underneath the following else clause - in particular, the creation of the item and adding it to both the self.__documents_dict[index] and to the items list.
The text was updated successfully, but these errors were encountered:
For clarity, code enters the if block at the top (because the action is create) but never enters the highlighted block where the item gets created. The only way for me to get the code to enter that block would be if the action wasn't index or create or update or delete.
Or maybe it's some block of code inside the first if that it failed to enter - but that block of code is wrapped with if action == delete: - but the code that follows doesn't look like it is delete-specific; it just validates the action and then creates an item, etc.
I am attempting to bulk create a few documents by passing this to
bulk
:It always returns this:
Stepping through things in a debugger takes me into
fake_elasticsearch.py
where I can see the documents are never added to the internal dictionary. It's almost as if some indentation got messed up.It goes into this block:
...which makes sure the index exists:
So far, so good. But that's where it stops. I mean, everything else that needs to happen is found underneath the following
else
clause - in particular, the creation of theitem
and adding it to both theself.__documents_dict[index]
and to theitems
list.The text was updated successfully, but these errors were encountered: