Skip to main content
Segments are groups of users that share common characteristics or behaviors. By grouping users into segments with ruleContexts, you can better personalize their experience.

Identify the user segments

Before you can personalize segments, you need to identify the segments your users belong to. This lets you group users by criteria relevant to your organization. For example, you might categorize users by device type, such as those who prefer mobile or desktop. You might also categorize users by location, such as those from France, Canada, or Japan.

Create contextual rules with segments

Once you’ve identified your user segments, create contextual rules for them. Contextual rules let you adjust search results based on a segment used as a context.

Assign a segment context at query time

When a user starts a search, consider the segment they belong to and treat it as a context.
Last modified on September 16, 2026