1. Matt Chaput
  2. whoosh
Issue #346 resolved

AsyncWriter missing method

Corey
created an issue

See Issue #68 as mentioned in #68 it should also redirect delete_by_query() as I have been getting similar self.is_deleted() not defined while using delete_by_query with the AsyncWriter.

This can be fixed by adding the following after delete_by_term at about ln1034 in writing.py:

    def delete_by_query(self, *args, **kwargs):
        self._record("delete_by_query", args, kwargs)

Comments (2)

  1. Corey reporter

    The only strange thing is that occasionally I don't get an error when using delete_by_query with the AsyncWriter. But then when I try and index a document with the same writer it doesn't get written... Unfortunately I haven't been able to reliably reproduce this or make a test case so take this last comment with a pinch of salt as the error may be caught by some of my code.

  2. Log in to comment