You can use a search field on your site to pull a list of relevant content for your visitors on a search results page. Below find answers to frequently asked questions about the search field module and search results page.
How is the search results order determined?
The search results order is determined by a series of weighted comparisons of page content to the visitor's search term. Page content is separated out into comparison fields with varying weight based on where the content lives within the HTML of your pages. Comparison fields are grouped in order of weight:
- HTML title
- Meta description
- H1 HTML elements
- H2 HTML elements
- H3 HTML elements
- Other HTML elements
Please note that this list is subject to change.
How quickly should changes to existing pages and new pages show up in site search results?
While there is no exact timeline for when changes or new pages should show up in search results, they should show up relatively quickly. If changes to results do not appear within six hours, please reach out to HubSpot Support. If new pages do not show up within six hours, make sure the new page does not meet the criteria below.
Is site search predictive?
By default, the search field module will display a typeahead dropdown of likely and relevant search results as the visitor is typing. The visitor can either click through to these typeahead results, or enter their search term to be directed to the search results page for a full list of relevant results.
How can I see what is being searched on my site?
Currently, site search does not have search analytics. However, this functionality may be added in the future.
Will my search results page show up in search engines?
Search results pages are automatically blocked from search engines. This is because the content is dynamically generated, and it is best to have the individual pages indexed based on their content.
Why is a specific page not showing up in my search results? How do I block a page from showing up in my search results?
Why are my search results not showing up?
Ensure the search results module exists in the template you have selected as the Search results page template. Additionally, confirm that the pages you are expecting to show up in a search result are not being blocked from being crawled in your robots.txt file.
How do I set the path of my search results page?
To set the path of your search results page, navigate to your account settings in the main navigation. In the right sidebar, click Marketing > Web pages, then click the System Pages tab. Set the Search results page URL field for your domain(s).
How do I create a new search results template?
I created a new template, why is it not showing up in the search results page dropdown in Settings?
Only search results page system templates will show up in the Search results page dropdown in Settings.
What is the best way to preview my search template?
Before including the search field module on any live pages, you can include it on a test page or template to preview how this module will function, and how the search results page will function. Once you like how everything looks and works, include the search field module in your live templates.