public void PopulatePlainIndexPerson()
        {
            for (var i = 20; i < 40; i++)
            {
                var index = i + 1;
                var person = new Person
                {
                    Id = index,
                    Name = string.Format("Person {0}", index),
                    Revenue = index * 100000,
                    Comment = string.Format("comment {0}", index)
                };

                var personJson = Serializer.ToJson(person);
                var result = PlainClient.Put(new IndexCommand(Constants.INDEX_PERSON, "person", id: index.ToString()), personJson);
            }
        }
        public void PopulateIndexPerson()
        {
            //Client.CreateIndex(ci => ci
            //    .Index(Constants.INDEX_PERSON)
            //    .AddMapping<Person>(m => m.MapFromAttributes()));

            for (var i = 0; i < 20; i++)
            {
                var index = i + 1;
                var person = new Person
                {
                    Id = index,
                    Name = string.Format("Person {0}", index),
                    Revenue = index*100000,
                    Comment = string.Format("comment {0}", index)
                };

                //Client.Index(person);
                //index a document under /myindex/mytype/1
                Client.Index(person);
                //Client.Raw.IndicesCreate(Constants.INDEX_PERSON);

            }
        }