How to Update a Document in Elasticsearch with NodeJS

Introduction If you’re interacting with Elasticsearch through a NodeJS application, you’ll probably need to update a document at some point. It’s one of the most common tasks in database management– a user may update their address or credit card information, or the price of a product may need to be changed. Regardless of the situation, … Continued

How to Query Elasticsearch using NodeJS

Introduction If you’re running a NodeJS application with Elasticsearch, you’re getting the best of both words: the efficiency of NodeJS and the powerful search functionality of Elasticsearch. To make the most of this search functionality, it’s important to know how to query Elasticsearch. In this tutorial, we’ll provide step-by-step instructions that show how to query … Continued

How to Delete a Document by Id in Elasticsearch using NodeJS

Introduction If you’re interacting with Elasticsearch using a NodeJS application, there may be occasions when you need to delete a specific document. Fortunately, it’s easy to use the npm Elasticsearch module to communicate with Elasticsearch and issue this command. In this tutorial, we’ll learn how to delete a document by id in Elasticsearch using NodeJS. … Continued

How to Compute a Weighted Average with Aggregations in Elasticsearch

Introduction When you’re determining the average for values in a dataset, sometimes it doesn’t make sense to treat all the values equally. For example, if you’re calculating student grades, doing inventory cost accounting, or computing average bond yields, it’s helpful to assign a relative importance to each value in your dataset. That’s where a weighted … Continued

How to Use Elasticsearch with NodeJS

Introduction Elasticsearch is very compatible with popular applications that run on the backend. NodeJS for example, is one such application that when combined with Elasticsearch, you’re likely to expand your productivity. Because NodeJS is fast, your efficiency increases when you use Elasticsearch with it to run Javascript on the server-side and then let it run … 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.