Range query
A range query retrieves values or objects satisfying a specified interval, comparison, distance, or spatial-boundary condition.
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
- less-than-or-equal operatoruses · The less-than-or-equal operator compares values and tests whether one value is less than or equal to another.
- must_not clauseused by · A Boolean query clause in Elasticsearch that excludes documents matching its inner query.
- DBSCANused by · DBSCAN is a density-based clustering algorithm that groups observations in dense regions and identifies observations in lower-density regions as noise or outliers.
- deletionused by · Deletion is an operation that removes an item, association, or resource from a collection or system, or requests or marks it for removal.
- similarity searchkind of · Similarity search is a retrieval technique that finds or ranks items by comparing their representations with a query according to a similarity or distance measure.
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.


