liveBook · Manning

Range query

A range query retrieves values or objects satisfying a specified interval, comparison, distance, or spatial-boundary condition.

How 3 Manning books explain it

MongoDB 8.0 in Action, Third Edition

A range query selects records whose indexed or comparable values fall within specified lower and upper bounds or ordering conditions.

How it is used
Filters ordered values in MongoDB queries and helps frame compound-index design for efficient reads.
How deep it goes
Works through an ESR-ordered index and execution statistics, but does not develop range-query internals.
Examples
Uses a movie-rating threshold, a release-year condition, title sorting, and contrasting `IXSCAN` and `COLLSCAN` plans.
What you can do after
Apply it via MongoDB `find()` and `createIndex()`, then inspect index use with `explain("executionStats")`.

Read how MongoDB 8.0 in Action, Third Edition explains range query →

Advanced Algorithms and Data Structures

A region query retrieves the data points within a specified radius of a given point.

How it is used
Uses multidimensional indexing to retrieve nearby or coordinate-bounded points for similarity search, simulation, and clustering.
How deep it goes
Explains spherical and rectangular recursion, branch pruning, and complexity, while deferring mixed-feature regions to more complex methods.
Examples
Uses salary-and-tenure rectangles, particle interactions within a force radius, and DBSCAN hypersphere neighborhoods.
What you can do after
Apply it via k-d trees or SS-trees to implement neighborhood, similarity, particle-interaction, or clustering queries.

Read how Advanced Algorithms and Data Structures explains range query →

Elasticsearch in Action, Second Edition

A query that retrieves documents whose field values fall within specified lower and upper bounds.

How it is used
Retrieves structured-data documents whose numeric or date fields satisfy specified lower and upper bounds.
How deep it goes
Explains bounds, operators, sorting, date math, Boolean composition, and deletion, stopping short of deeper query internals.
Examples
Demonstrates book ratings, movie ratings and release dates, TV prices, flight times, and movie earnings.
What you can do after
Apply it via Elasticsearch query DSL to search, combine, sort, exclude, or delete documents matching value ranges.

Read how Elasticsearch in Action, Second Edition explains range query →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.