Skip to content

MongoDB

8 articles

Advanced Text Search in MongoDB

Master MongoDB's advanced text search with logical operators, phrase matching, stemming, field filtering, and relevance scoring techniques.

mongodbjavascriptsearchdatabase queriestext indexing

Combine Facet Summaries with Search Results

Use MongoDB's $facet stage to execute multiple aggregation pipelines in parallel, combining search results and facet summaries in a single query.

MongoDBAggregation PipelineDatabase QueriesFacetingSearch Results

Custom Weighted Search Results

Use MongoDB's $search stage with $project to calculate custom weighted search results based on search scores and document field values.

MongoDBSearchDatabase QueriesAggregation Pipeline

Geolocation Based Search

Build location-based search in MongoDB using the $geoNear aggregation stage with geospatial indexing to find nearby stores.

mongodbjavascriptgeolocationsearchgeospatial indexing

Pagination with MongoDB using Aggregation Pipelines

Implement efficient pagination in MongoDB using aggregation pipelines with $skip, $limit, and $facet operators for both small and large datasets.

mongodbjavascriptaggregationsearchpagination

Search, Text and Match Operator

Explore the differences between MongoDB's $search, $match, and $text operators and learn when to use each for filtering and text search queries.

MongoDBDatabase OperatorsText SearchAggregation PipelinesQuery Optimization

$text operator

Learn how to use MongoDB's $text operator to perform text searches with relevance scoring in aggregation pipelines for ranking search results.

MongoDBText SearchAggregation PipelineDatabase IndexingQuery Operators

Text Search in MongoDB

Learn how to implement text search in MongoDB using text indexes and the $text operator, including aggregation pipelines and relevance scoring.

mongodbjavascripttextsearchtext searchindexingaggregation pipeline