예제 #1
0
        public void YelpSelectReviewTest()
        {
            var reviewQuery = new ReviewQuery();
            var items       = reviewQuery.Query(0, 100);

            OutputWrite($"数量:{items.Count()}");
            items.ForEach(e => OutputWrite($"id:{e.Id}, flag: {e.Flag}"));
        }
예제 #2
0
        public void TestMethod()
        {
            var client      = GetClient();
            var reviewQuery = new ReviewQuery();
            var item        = reviewQuery.Query(0, 1).FirstOrDefault();

            Assert.NotNull(item);

            client.Index(item, idx => idx.Index("yelp").Type("review"));
        }