コード例 #1
0
    def setUp(self):
        # Create ES mapping
        self.es_mapping = Elasticsearch6SearchBackend.mapping_class(
            models.Book)

        # Create ES document
        self.obj = models.Book.objects.get(id=4)
コード例 #2
0
    def setUp(self):
        # Create ES mapping
        self.es_mapping = Elasticsearch6SearchBackend.mapping_class(models.Novel)

        self.obj = models.Novel.objects.get(id=4)
コード例 #3
0
    def setUp(self):
        # Create ES mapping
        self.es_mapping = Elasticsearch6SearchBackend.mapping_class(models.Book)

        # Create ES document
        self.obj = models.Book.objects.get(id=4)
コード例 #4
0
    def setUp(self):
        # Create ES mapping
        self.es_mapping = Elasticsearch6SearchBackend.mapping_class(
            models.Novel)

        self.obj = models.Novel.objects.get(id=4)