CreateIndex and NEST 6.0.0


#1

We used to create our indexes using NEST 5.x and ElasticSearch 5.x. We are now trying to upgrade to elasticsearch 6.x. How do we go about creating an index using nest 6.x? Furthermore, where can documentation on NEST 6.x be found?


(Thomas Dasch) #2

I found this link for Nest 6.x index creation. Hope it helps!


#3

Thank you. Yet it shows me how to index & not really how to create the index. We now have the following line of code for creation of an index in 5.x:

ICreateIndexResponse response = this.Client.CreateIndex(new IndexName() { Name = this.IndexName }, selector);

However, now in 6.x the indexname ctor is gone & I cannot find a way to create this indexname object.


(Russ Cam) #4

You can simply pass this.IndexName. There is an implicit conversion from string to IndexName type


#5

wonderful, thank you!


(system) #6

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.