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.
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
- @id (Schema Node Identifier)@id is the JSON-LD property that gives an entity in your structured data a unique, stable identifier, so every…
- Brand EntityA brand entity is how search engines and AI systems represent your organisation as a distinct, recognised thin…
- EntityA distinct, identifiable thing such as a person, place, organisation, product or concept, which search engines…
- Entity AuditA structured review of how search engines and AI systems recognise, connect and trust the entities on your sit…
- Entity DisambiguationWorking out which real-world entity a name refers to, such as Apple the company or apple the fruit, using cont…
- Entity HubA page built to be the definitive source on one entity (a product, person, concept or organisation) instead of…
- Entity Linking (Reconciliation)Entity linking connects a name mentioned in text or data to the exact entity it refers to in a knowledge base,…
- Entity Relationships (Relationship Mapping)The labelled connections between entities, such as a person who works for a company, that let search engines a…
- Entity SEOOptimising how search engines and LLMs recognise, understand and connect the entities behind your site: your b…