def setUp(self): # Create ES mapping self.es_mapping = Elasticsearch7SearchBackend.mapping_class( models.Book) # Create ES document self.obj = models.Book.objects.get(id=4)
def setUp(self): # Create ES mapping self.es_mapping = Elasticsearch7SearchBackend.mapping_class(models.Novel) self.obj = models.Novel.objects.get(id=4)