Skip to content

Entities & Knowledge Graphs

Macro-Context

In shortThe broad domain a query or document belongs to, such as health or sport, which search systems use to narrow relevance before finer matching.

Updated 24 Oct 2026· 2 min read

Macro-context is the broad category or domain that a piece of content or a query belongs to, such as medicine, sport, finance or technology. It is the high-level answer to “what is this about?”. MLforSEO draws the concept from a Google patent on user-context-based search, where macro-context works together with micro-context, the specific terms and phrases within that domain.

How it works

In the patent’s description, content is grouped into general domains and represented as a vector showing how strongly it relates to each domain. When a query arrives, the system works out its macro-context first, which lets it set aside documents from unrelated domains early and score topical relevance at a high level. Micro-context then refines the match using the specific words, entities and phrases involved.

A practical way to see macro-context is a text classification API. The Google Cloud Natural Language API assigns content to hierarchical categories such as /Health or /Business & Industrial, with more specific subcategories below. The top-level categories behave much like macro-context, while subcategories and extracted entities resemble micro-context. Topic models and embeddings capture the same idea without fixed labels.

It is a close cousin of query context (the meaning inside a single search) and session context (signals across a series of searches).

How it’s used in SEO and marketing

  • Checking that each page’s dominant category matches the topic you want it to rank for.
  • Spotting pages that drift into the wrong domain, for example a fitness brand’s yoga page reading as spirituality.
  • Grouping a site’s content by domain to plan hubs and internal links.
  • Disambiguating keywords whose meaning depends on domain, such as “python” (programming or reptiles) or “mercury” (planet, element or car brand).

Example

MLforSEO’s post on query and session context uses a page about “yoga for beginners”. Macro-context places it in health and fitness rather than spirituality or lifestyle; micro-context then looks at terms such as “poses”, “flexibility” and “breathing” to match it to more specific queries. Running your pages through a classification API and checking the top-level category is a quick way to test this.

Limitations and things to watch

  • Patents describe possible approaches; they do not prove how Google ranks pages today.
  • Category taxonomies are coarse, and mixed-topic pages may get split or unexpected categories.
  • Strong macro-context is necessary but not enough; micro-context and intent still decide which page wins.

Learn it on MLforSEO

Sources and further reading

Other terms from Entities & Knowledge Graphs

See all 23 Entities & Knowledge Graphs terms →