def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def prefix(self):
        return self._matcher.prefix() and not self._always