Beispiel #1
0
        public async Task Should_be_Able_to_add_Document_for_Index()
        {
            var updateStatus = await index.AddorUpdateDocuments(new[] { new Movie {
                                                                            Id = "1", Name = "Batman"
                                                                        } });

            updateStatus.UpdateId.Should().BeGreaterOrEqualTo(0);
        }
Beispiel #2
0
        public async Task Basic_Version_Of_default_client()
        {
            MeilisearchClient ms = new MeilisearchClient("http://localhost:7700", "masterKey");
            var   indexName      = "uid" + new Random().Next();
            Index index          = await ms.CreateIndex(indexName);

            var updateStatus = await index.AddorUpdateDocuments(new[] { new  Movie {
                                                                            Id = "1", Name = "Batman"
                                                                        } });

            updateStatus.UpdateId.Should().BeGreaterOrEqualTo(0);
        }