(self, index, iterable, commit=True)
| 49 | model_name = "mockmodel" |
| 50 | |
| 51 | def update(self, index, iterable, commit=True): |
| 52 | global MOCK_INDEX_DATA |
| 53 | for obj in iterable: |
| 54 | doc = index.full_prepare(obj) |
| 55 | MOCK_INDEX_DATA[doc["id"]] = doc |
| 56 | |
| 57 | def remove(self, obj, commit=True): |
| 58 | global MOCK_INDEX_DATA |