Content Search Settings
Content Search settings decide how your pages are searched: the language, spelling correction, how strictly queries must match, what suggestions and snippets show, and who may call your search.
Where to find it: Search Settings → General → Content Search
On a Content + Product Search project, the General tab also has a Product Search card above, and every project has the Spam Filter below. Click Save after changing settings. Test the effect in Search Preview: its searches aren't counted toward your quota or shown in your analytics, and Bypass Cache (on by default) shows your changes right away.
Language
Language sets the language your content is indexed and searched in, for example for stemming and stop words. It doesn't change the language of your search interface: set that in Design & Publish. Changing it starts a full re-index when you save.
Spelling Correction
Spelling Correction corrects typos in queries: each word is checked against a dictionary of the language, and the most frequent close spelling is used. It doesn't correct words that already match your top results. It's off for new projects; turn it on under Settings.
Even with it off, a query with no results can get a suggestion learned from earlier queries.
Allow Bot Searches
Allow Bot Searches lets bots such as Googlebot run searches, for example by following links to your search results pages. Their searches count toward your query quota and fill your analytics with bot queries.
It's off by default. While it's off, bot requests to the search are refused, including server-side requests from code libraries; use the API with your own user agent for those.
Content Search Fuzziness
Fuzziness sets how closely a page has to match the query to be shown. Two sliders control it:
- Search Suggestion Fuzziness: for search suggestions while visitors type.
- Search Fuzziness: for the results after pressing Enter or the search button.
Both have six levels, from strictest to loosest. Default is the middle:
| Level | A page matches when | Example: "latest trend" |
|---|---|---|
| extremely strict | It contains the query as a phrase, in the typed order. | matches "the latest trend", not "latest fashion trend" |
| strict | It contains every word, in any order and any field. | also matches "latest fashion trend" and "trend latest" |
| default | It contains at least 90% of the words. | — |
| more results | It contains at least 50% of the words. | — |
| even more results | It contains at least 40% of the words. | — |
| get most results | It contains at least 10% of the words. | — |
Whatever the level, the best matches come first: the level only changes how many weaker matches are added. The difference shows on queries with several words, such as "women ski mittens", more than on single words.
Show Advanced Settings opens Search Field Boosts: the title, content and data point boosts (1–10×) set how much a match in each field counts toward ranking.
On Content + Product Search projects, products have their own fuzziness.
Search Suggestions
Ways to shape what search suggestions show while visitors type:
- Fuzziness: adjust Search Suggestion Fuzziness (above).
- Titles only: Suggestions only on titles (on by default) suggests only pages whose title contains the query. Turn it off to also suggest pages that match in their content. For example, with products called "Travelr", visitors typing "travel" then see only those products, not every page that mentions travel.
- Result groups: limit a search box's suggestions to some result groups with the
data-ss360-include-suggestordata-ss360-exclude-suggestattribute.data-ss360-includeanddata-ss360-excludelimit both suggestions and results. - Better titles: suggestions show your page titles; set which part of the page is the title under Content Extraction.
- Suggested searches: add your own search terms or popular queries with Autocomplete Queries.
- Layout: choose what suggestions show before and while visitors type in Design & Publish.
Search Snippet
The snippet is the text under each search result. Under Search Snippet Source, choose where it comes from:
- Show content around the search query (default)
- Show first paragraphs of indexed content
- Use content behind search snippet XPath: for example the meta description, with the preset XPath
//meta[@name="description"]/@content. - Use content from a Linked Data property: a property of the page's JSON-LD, set with a condition and a property path.
- Do not show a snippet: results show only the title and URL.
With the XPath or Linked Data source, Use content around search query as fallback fills in when a page has nothing there.
- Max. Snippet Length: the length in characters, 10–1000 (default 200). The actual length varies by about 10%.
- Escape HTML in Snippet: shows HTML in the snippet as text.
After changing the snippet source or length, or when you add or change meta descriptions, re-index your site.
Access Control
Access Control limits who can use your project's search and suggestion endpoints. Without it, anyone who knows your site ID can query them directly and read your indexed results, even if your website is behind a login. This matters most for intranets and extranets.
Access Control is available on Content Search projects only, not on Content + Product Search projects.
Protect Search Endpoints
Protect Search Endpoints stops the Site Search 360 JavaScript plugin from working on your site. Use it only with your own integration that adds the API key on your server.
With Protect Search Endpoints on, every search and suggestion request must include your API key, either as the parameter token=<your-api-key> or as the header Authorization: <your-api-key>. Requests without it are refused (HTTP 401). API keys come with the Batman and Batman Pro plans and custom plans with API access; on other plans, use Allowed Host Names.
Allowed Host Names
Under Allowed Host Names, list the hosts your search may be used from, such as www.example.com. Requests from other hosts are refused. Leave it empty to allow all. It works with or without Protect Search Endpoints; when both are set, requests need the API key and an allowed Origin.
Allowed Host Names checks only the Origin request header, which anyone can fake, so treat it as a basic restriction, not as security.