Product docs
- Getting started
- Platform and account
- Products
- Product Overview
- Tengence Search
- Product Overview
- Use cases: which businesses Tengence Search fits
- Getting started
- Search Setup: App, Dataset, Index, First Query
- OpenSearch Spring Boot Starter Integration
- Elasticsearch Spring Boot Starter Integration
- Guides
- Index Concepts and Configuration Guide
- Index Schema Reference
- Search Ranking and Weighting Configuration
- Ranking Factors and Functions Reference
- Search Suggestions and Intervention Rules
- Developer reference
- Search API Reference
- Search API Integration and Examples
- Search Widget Integration
- Operations and support
- Search Operations and Monitoring
- Search Troubleshooting
- Query Rules and Query Intervention
- Search Log Collection Policy
- Query Understanding Configuration
- Tengence GEO
- Tengence Recommendation
- Tengence Insight
- Data Integration
- Integration and API
- Solutions
- Concepts and metrics
Search Suggestions and Intervention Rules
Configure result limits, deduplication, ranking formulas and Block, Pin, Boost and Replace rules for query suggestions, popular queries and placeholder hints.
Search suggestions help users before they finish typing a query. The console groups them into three surfaces that share runtime settings and intervention rules but appear at different moments. Runtime settings control how many terms are returned and whether duplicates are removed. Intervention rules decide which term is blocked, pinned, boosted, or replaced for a given query.
Know the three surfaces first
| Surface | Where it appears | Trigger condition | Minimum query length | Typical use |
|---|---|---|---|---|
| Query Suggestions | While the user types in the search box | Supported | Supported | Long-tail queries, input correction |
| Popular Queries | When the search box is focused or the query is empty | Not supported | Not supported | Merchandising slots, campaign terms, brand terms |
| Placeholder Hints | Placeholder text in an empty search box | Not supported | Not supported | Guide the first search |
Rules are scoped to a single surface. To show the same term in Query Suggestions and Popular Queries, create one rule in each surface. One rule does not apply to all three.

Runtime settings
- Status: master switch. When off, the app returns no query suggestions, popular queries, or placeholder hints, and no rule is evaluated.
- Max Items: 1–20, default 10. This is the number returned after blocking, deduplication, and ranking, not the size of the candidate pool.
- Result Dedup: when on, texts are compared after trimming, lowercasing, and collapsing repeated spaces; only the higher-scoring duplicate is kept.
- Minimum Query Length: Query Suggestions only, 0–20. A value of 2 means no suggestions until the user types at least two characters. Popular Queries and Placeholder Hints ignore this value.
Click Save at the bottom of the page to apply runtime setting changes.
The two parts of Advanced Settings
Expanding Advanced Settings reveals two blocks:
- Ranking Management: scores candidates with a formula. Available factors include
@relevance,@auto_score,@editorial_weight,@length,@prefix_match, and@locale_match. Choose Validate Formula before saving. - Intervention Rules: runs after formula scoring for manual control. Rules do not change the formula; they block, pin, boost, or replace matched candidates.
The formula decides who ranks first under normal conditions. Intervention rules decide who must move up or down for a specific query. Keep the split clean: use the formula for lasting relevance tuning and rules for temporary merchandising actions.

Add an intervention rule
A rule has four parts: candidate term, trigger term, action, and effective time.
Candidate term and trigger term
The candidate term is the term to act on. It matches the candidate text, not the user query. The candidate condition is required and supports five match types:
| Match type | Meaning | Example |
|---|---|---|
| Equals | The candidate exactly equals the pattern | Pattern coffee table matches only coffee table |
| Contains | The candidate contains the pattern | Pattern table matches coffee table and side table |
| Prefix | The candidate starts with the pattern | Pattern cof matches coffee table |
| Suffix | The candidate ends with the pattern | Pattern table matches side table |
| Regex | Full Java regex match | Pattern (?i)coffee.* matches candidates starting with coffee |
Equals, Contains, Prefix, and Suffix are lowercased before matching, so they ignore case. Regex matches the raw text and is case-sensitive by default; add (?i) to ignore case. An invalid regex does not raise an error; it simply matches nothing.
The trigger term appears only on Query Suggestions and limits when the rule runs:
- Leave Trigger condition unchecked: the rule applies to every query on that surface.
- Check it and enter a trigger term: the rule runs only when the current query matches the trigger.
- The trigger matches the complete query the user typed, using the same five match types. To match queries that start with “sofa”, choose Prefix; do not expect Contains to enforce a word boundary.
Popular Queries and Placeholder Hints have no trigger condition. A rule applies to the whole surface.
Four actions
| Action | Value | Effect | Use it for |
|---|---|---|---|
| Block | None | Removes the candidate from the current surface | Retired, sensitive, or invalid terms |
| Pin | Position 1–20 | Places the candidate in the pinned group ahead of normal results | Campaign or brand terms that must be visible |
| Boost | Factor 0–10 | Multiplies the formula score to change relative order | Seasonal or regional terms that need more or less weight |
| Replace | Replacement text | Changes the candidate text to another term | Misspellings, old product names, naming consistency |
How the actions differ:
- Block is a hard removal. Once a candidate is blocked, later rules no longer process it.
- Pin only sets a position within the pinned group; it does not guarantee the first slot. When several rules pin terms, the smaller position comes first, and equal positions are ordered by score.
- Boost multiplies the existing score: 1 leaves it unchanged, below 1 lowers it, above 1 raises it. If several boost rules match the same candidate, their factors multiply.
- Replace changes only the candidate text, not a query the user has already submitted. The replacement then participates in deduplication and subsequent rule matching.
Effective time
- Permanent: runs after saving until disabled or deleted.
- Limited time: runs only inside the start and end time. The end time must be later than the start time.
Disable or delete limited-time rules after a campaign. Do not rely on “it expires eventually” to manage long-term configuration.

A new rule is saved when you click Confirm in the drawer. Runtime settings and the ranking formula use the Save button at the bottom of the page. They are separate saves.
How rules stack
Rules run in reverse creation order: the newest rule first. Every matching rule is applied to the same candidate in sequence, so order affects the result:
- Block short-circuits. Once any rule blocks a candidate, later rules skip it. To keep a term but lower it, use Boost, not Block followed by Pin.
- Replace changes the text. A new rule can change
coffee tabeltocoffee table; older rules then matchcoffee table. A rule that matches the misspelling no longer applies. - Boost factors multiply. Two 1.5 boosts on the same candidate produce 2.25, not 1.5.
- Pins sort by position, then score. Position 1 comes before position 2; when both use position 1, the higher final score comes first.
- Disabled and expired rules are skipped. Disabled rules and rules outside their effective window are filtered out before matching.
Do not expect a Block rule and a Pin rule to cancel each other out. If a term should stay visible, disable or delete the Block rule and control placement with Pin.
Four common configurations
| Goal | Candidate term | Trigger term | Action |
|---|---|---|---|
| Keep a retired term out of Query Suggestions | Equals old sofa |
None | Block |
| Put a campaign term first when the query contains sofa | Equals spring sofa festival |
Contains sofa |
Pin at 1 |
| Raise rattan terms during summer | Contains rattan |
None | Boost 1.5 |
| Normalize a common misspelling | Equals coffee tabel |
None | Replace with coffee table |
Three things to watch:
- The candidate must already exist in the current surface’s candidate pool. Rules only reorder or rewrite; they do not create a new term.
- Do not make trigger terms too broad. A pattern such as
Contains amatches a large share of queries and turns the rule into a global rule. - When several rules target the same candidate, use the most direct action first. Avoid stacking rules with overlapping semantics.
Pre-launch checklist
- Confirm the rule is on the intended surface. Query Suggestions rules do not affect Popular Queries or Placeholder Hints.
- Confirm the rule is enabled and, for a limited-time rule, that the current time is inside the window.
- Confirm the candidate spelling matches the candidate pool. Case and outer spaces are normalized, but punctuation and spelling inside the term are not corrected automatically.
- Confirm the pin position does not exceed Max Items. A position beyond the returned count is never visible.
- Confirm the trigger scope. An empty trigger applies to every query; test on a narrow query set before widening it.
- Confirm rule order. Newer rules run first, and Replace or Block change what later rules match.
- After changing runtime settings or the formula, confirm you clicked Save at the bottom of the page, not only Validate Formula.
Common issues
The rule is saved but has no effect
Check the surface first, then the status and effective window. Next check the trigger: a checked trigger with a non-matching term prevents the rule from running; an unchecked trigger applies to every query. Finally, confirm the candidate is actually in the candidate pool. Rules do not add candidates.
A blocked term still appears
Confirm the rule was created on the current surface; rules do not cross surfaces. If the same term appears on another surface, create a rule there. If a rule replaces a term before another rule blocks it, check the creation order.
The original term is still searchable after Replace
Replace changes only the suggested text; clicking the suggestion submits the replacement. A user can still type the original term and search. To stop the original term from entering search results, handle it in query rules or the index, not in suggestion rules.
A pinned term is not first
Check for another pin rule with a smaller position. Equal positions are ordered by score. Also check whether Max Items is too small: a pin position beyond the returned count is not shown.
Boost barely changes the order
Boost is multiplicative. A factor close to 1 has little effect, and a large score gap between candidates may need a stronger factor. Use a higher factor or Pin when the change must be obvious.
Related documentation
- Search Ranking and Weighting: ranking formulas and the split between coarse and fine ranking.
- Ranking Factors and Functions Reference: factors and functions available in formulas.
- Search Operations and Monitoring: metrics to watch after launch.
- Search Troubleshooting: an ordered approach to unexpected results.