Details
Description
Summary
Keyword domain searches (searches without a TLD, e.g., "mybusiness") currently check availability across ALL configured TLDs, causing customers to hit registrar API rate limits. This change will limit keyword searches to only check spotlight TLDs, giving admins control over which TLDs are checked.
Problem
When a user enters a keyword without a TLD in the domain lookup form, the system queries availability for every configured TLD. For deployments with 50-100+ TLDs, this generates excessive API calls to registrar modules, triggering rate limits and failed lookups.
Solution
Modify keyword search behavior in the Order plugin to only check spotlight TLDs:
1. Keyword searches (no TLD specified): Check only spotlight TLDs configured in Domain Manager, or fall back to first 4 TLDs if none configured
2. Full domain searches (TLD specified, e.g., "example.com"): Continue checking the specific TLD requested (no change)
Benefits
- Reduces API calls from potentially 100+ to typically 4-10 per keyword search
- Admins control which TLDs are checked by configuring spotlight TLDs in Domain Manager
- Users still see popular/promoted TLDs first
- Users can still search specific TLDs by entering the full domain name
Files Affected
- plugins/order/lib/order_types/domain/order_type_domain.php
Acceptance Criteria
- Keyword searches only check spotlight TLDs (or first 4 TLDs if none configured)
- Full domain searches (with TLD) work unchanged
- "Load More" button hidden for keyword searches when only spotlight TLDs are available
- Existing spotlight TLD configuration in Domain Manager controls which TLDs are checked
Activity
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Jonathan Reissmueller [ jonathan ] |
| Status | Open [ 1 ] | In Progress [ 3 ] |
| Status | In Progress [ 3 ] | In Review [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Remaining Estimate | 0 minutes [ 0 ] | |
| Time Spent | 29 minutes [ 1740 ] | |
| Worklog Id | 18077 [ 18077 ] |
| Status | In Review [ 5 ] | Closed [ 6 ] |