11 Carrying out full-text search using Atlas Search

 

This chapter covers

  • Enabling full-text search capabilities
  • Understanding Apache Lucene’s inverted index
  • Discovering the Atlas Search environment
  • Creating an Atlas Search Index with the Atlas CLI
  • Using $search and $searchMeta aggregation stages
  • Playing with Atlas Search Playground

Full-text search is invaluable across a variety of fields, including e-commerce platforms, digital libraries, customer support systems, content management systems, legal document analysis, academic research, human resources platforms, logs searches, social media platforms, email search tools, and medical record management. This sophisticated technique surpasses traditional exact-word matching by analyzing document content to identify matches based on relevance, specific phrases, and text attributes. Its versatility makes it well suited to a wide range of needs and formats.

The method enhances simple keyword searches, allowing you to find relevant documents quickly, narrowing search results, and providing rapid access to necessary information. Boolean searches use operators such as AND, OR, and NOT to refine query precision, effectively filtering results to precise criteria. Fuzzy and wildcard searches address misspellings and different word forms, increasing search flexibility and accuracy by anticipating user input variations.

11.1 Implementing full-text search

11.2 Understanding Apache Lucene

11.3 Getting to know Atlas Search

11.3.1 Learning Atlas Search architecture

11.3.2 Using Atlas Search Nodes

11.3.3 Atlas Search indexes

11.4 Building an Atlas Search index

11.5 Running Atlas Search queries

11.5.1 Using the $search aggregation pipeline stage

11.5.2 Executing the $searchMeta aggregation pipeline stage

11.6 Learning Atlas Search commands

11.7 Using Atlas Search Playground

Summary