Skip to main content

Adding Multiple Domains to Search

AddSearch lets you add multiple top-level domains (e.g., yoursite.com) and subdomains (e.g., blog.yoursite.com) to a single account. All added domains share the same search index and can be accessed through any of AddSearch's search views.

By default, search results include content from all your indexed domains. You can also filter results by domain name when needed.

Why use multiple domains?

Adding multiple domains is useful if your content is spread across several websites. This setup lets users search all your content from one search interface.

How to add domains to your AddSearch account

  1. Log in to your AddSearch account.
  2. Navigate to Setup > Domains and crawling.
  3. Find the Additional domains section.
  4. Click Add new domain +.
  5. Enter the domain name without the protocol (no http:// or https://) and without trailing slashes.
  6. Click Save to apply changes.

AddSearch will begin crawling and indexing pages from the new domain automatically.

Add additional domains interface

Filtering search results by domain

By default, searches return results from all indexed domains. To restrict results to specific domains, use category filters in your search implementation.

Add the categories parameter to your installation script with domain filters prefixed by 0x. Separate multiple domains with commas.

Example:

// Show results from blog.domain.com and www.domain.com only
searchInstance.setCategories('0xblog.domain.com,0xwww.domain.com');

Replace searchInstance with your actual search object variable.

Additional resources