Inserting and extracting NoSQL database data in Python
Relational databases may be what you think of when you hear the term database, but there are several other types of databases, such as columnar, key-value, and time-series. In this section, you will learn how to work with Elasticsearch, which is a NoSQL database. NoSQL is a generic term referring to databases that do not store data in rows and columns. NoSQL databases often store their data as JSON documents and use a query language other than SQL. The next section will teach you how to load data into Elasticsearch.
Installing Elasticsearch
To install the elasticsearch
library, you can use pip3
, as shown:
pip3 install elasticsearch
Using pip
will install the newest version, which, if you installed Elasticsearch according to the instructions in Chapter 2, Building Our Data Engineering Infrastructure, is what you will need. You can get the library for Elasticsearch versions 2, 5, 6, and 7. To verify the installation and...