How to Drop a MongoDB Collection with NodeJS

Introduction If you’re working with MongoDB through NodeJS and Javascript and you need to know how to drop a collection, we’ll show how to do it in this article. Be aware that this will delete all documents from the collection so be sure you really want to do the collection before proceeding with the steps. … Continued

How to Aggregate a Filtered Set in Elasticsearch using NodeJS

Introduction Somtimes you’d like to do an aggregation but not of your entire dataset. Most often you’ll want to limit the data by some condition or another. It’s useful to know how to get Elasticsearch to perform aggregations like averages, sums, maximums, and minimums but of a filtered set. We’ll show you exactly how to … Continued

How to Use the Stats Aggregation in Elasticsearch using NodeJS

Introduction Elasticsearch aggregations allow you to compute averages, sums, maximums, and minimums. You can get all these individually but the stats aggregation lets you get all of these aggregations in one call. There is also an extended stats aggregation which gives you a few more of the advanced ones like standard deviations. If you’re looking … Continued

How to Use Percentile Aggregation in Elasticsearch with NodeJS

Introduction An aggregation computation that comes up frequently when trying to figure out the distribution of your data is the percentile aggregation. Percentile aggregagtions are simple in Elasticsearch and this step-by-step example will show you an example of one that you can use as a basis for your own aggregation. In this step-by-step example we … Continued

How to Delete Multiple Indices in Elasticsearch with NodeJS

Introduction Most Elasticsearch users have come across the situation where they need to delete a number of indices at once. You might have created several indices to test out features, but you don’t them anymore and would like to clean up your data. You might have changed your overall data structure and find that you’re … Continued

Keep in the know!

Subscribe to our emails and we’ll let you know what’s going on at ObjectRocket. We hate spam and make it easy to unsubscribe.