Learning Elasticsearch by Abhishek Andhavarapu
Author:Abhishek Andhavarapu [Andhavarapu, Abhishek]
Language: eng
Format: azw3, pdf
Tags: COM021040 - COMPUTERS / Databases / Data Warehousing, COM021050 - COMPUTERS / Databases / Servers, COM018000 - COMPUTERS / Data Processing
Publisher: Packt Publishing
Published: 2017-06-30T04:00:00+00:00
Querying based on range
Range query can be used on numbers and dates to query for all the documents in a given range.
Range query supports the following operators:
lt: < less than operator
gt: > greater than operator
lte: <= less than or equal to operator
gte: >= greater than or equal to operator
An SQL query to query all the products greater than 70 and less than 100 is shown here:
select * from product where unitprice > 70 and unitprice <= 100
The preceding query can be written using a range query as shown here:
POST chapter6/_search
{
"query": {
"range": {
"unit_price": {
"gt": 70,
"lte": 100
}
}
}
}
Similarly, a range query can also be used on dates as shown here:
POST chapter6/_search
{
"query": {
"range": {
"release_date": {
"gt": "2017-01-01",
"lte": "now"
}
}
}
}
We will discuss how to query dates in detail in the next section.
Download
Learning Elasticsearch by Abhishek Andhavarapu.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8309)
Azure Data and AI Architect Handbook by Olivier Mertens & Breght Van Baelen(6802)
Building Statistical Models in Python by Huy Hoang Nguyen & Paul N Adams & Stuart J Miller(6778)
Serverless Machine Learning with Amazon Redshift ML by Debu Panda & Phil Bates & Bhanu Pittampally & Sumeet Joshi(6668)
Data Wrangling on AWS by Navnit Shukla | Sankar M | Sam Palani(6451)
Driving Data Quality with Data Contracts by Andrew Jones(6395)
Machine Learning Model Serving Patterns and Best Practices by Md Johirul Islam(6154)
Learning SQL by Alan Beaulieu(6004)
Weapons of Math Destruction by Cathy O'Neil(5795)
Big Data Analysis with Python by Ivan Marin(5394)
Data Engineering with dbt by Roberto Zagni(4400)
Solidity Programming Essentials by Ritesh Modi(4048)
Time Series Analysis with Python Cookbook by Tarek A. Atwan(3907)
Pandas Cookbook by Theodore Petrou(3611)
Blockchain Basics by Daniel Drescher(3306)
Hands-On Machine Learning for Algorithmic Trading by Stefan Jansen(2914)
Feature Store for Machine Learning by Jayanth Kumar M J(2820)
Learn T-SQL Querying by Pam Lahoud & Pedro Lopes(2803)
Mastering Python for Finance by Unknown(2748)
