Sunday 15 August 2010

c# - ElasticSearch and NEST: How do you purge all documents from an index? -



c# - ElasticSearch and NEST: How do you purge all documents from an index? -

i know how delete entire elasticsearch index, how purge documents index?

my motivation: i'd have "reindex" method purges entire contents of index can reload documents.

elasticsearch syntax helful. nest syntax better.

i looking similar in nest , thought i'd set syntax here looking:

var node = new uri("http://localhost:9200"); var settings = new connectionsettings(node); var client = new elasticclient(settings); client.deletebyquery<elasticsearchproject>(del => del .query(q => q.querystring(qs=>qs.query("*"))) );

c# elasticsearch nest

No comments:

Post a Comment