We have widened our search functionality to not only search for products, but also static content, such as articles, videos, or images. Not only can your customers search for a specific item, but their search could also return additional content, such as marketing material, assembly videos, or feature articles on product care. A search for “delivery” may return results related to lead times or cost. A customer could search for firmware files to upgrade the smart device they purchased from you. |
The search engine will walk the publicly accessible page content and index accordingly.
Follow these steps to configure the article content search functionality for your site:
We need to turn on Content Search first: in your CMS, go to Settings → Feature Management → Content
Locate Content Search and click Configure.
Turn on Enable Content Search Feature.
Set the schedule to a few minutes in the future, and click Save and Exit.
Select Advanced Settings from the CMS side-menu.
Select Lucene Search Settings.
Select the Index Settings tab.
Tick the checkbox to enable indexing.
9. While you're there, let's enable Partial Word Searches. You do that by ticking Perform Partial Word Searches and selecting the Search Type: Scoring Boolean Query, Constant Score Query, and Matching Terms.
10. Click Update to save your settings.
11. Click the Indexing tab.
12. Click the "Reindex Page Content" button to initiate an index of the content on all pages.
13. The progress bar will display the progression of the reindexing.
14. Once complete, the Reindex process displays the time taken to index your site's pages.
Now, we need to add the Product Search widget to your site's layout.
15. Go to Content → Page & Templates → Theme Layout.
16. Click the Theme Layout option.
17. Locate the Product Search widget and click Edit. In our example, the Product Search widget is under Zone:HeaderColumn2.
18. You should now see a new field Static Content Search. Select Include Static Content Search from the dropdown list. This feature will expand your customers' search capabilities.
19. Select Save, and if you have your site set to Page Preview, then Publish the changes.
20. You can customise the zero results returned message in the Page Content Search Result Template. You can locate that option via Content → Page & Templates → Other Page & Templates.
21. Click to Edit the Page Content Search Result.
22. Open the Notification tab and type in your new message. Click Save, and if you have your site set to Page Preview, then Publish your changes.
23. Go to Content → Page & Templates → Products → Product List.
24. The Product List Title widget will now display at the top of the Product List page.
25. You can change the Static Web Pages Found Message to reflect the language and tone of your site.
26. Click Save at the bottom of the page. If you have your site set to Page Preview, then select Publish from the top right-hand side of the page to propagate the changes to your site.
27. Perform a search to see what results are returned. You can see it uses the message from the Product List Title widget in the results display.
28. Or, if your search returns no results, ensure your "no results" message from the Product Search widget's notification tab (Step 22) displays.
29. If we click on the Search Suggestions message highlighted in red in the image from Step 27, the system will bring up a list of pages in our site that contain the keyword.
30. We can confirm we have those Articles in our system by navigating in CMS to Content → Articles. Click Edit.
31. We can see that we have three articles with our keyword "article" in their heading.
32. If we search for a partial word that is not in a title, the system will also return results.
33. If you hit return on the Search Suggestions instead of clicking the "n web pages found" message, then the system will return a list of web pages that contain the keyword and a list of products that match it.
In this example, 1 web page and no products match the keyword.
34. You can click on the web page results to display the static content.
35. If your keyword matches products and static content, then searching and pressing return will give the following results.
36. In our example, we have Product Suggestions turned on in the Product Search widget, so the product search returned product names that are spelled similarly to our keyword.
The static content search facility will allow your customers to search on content other than products. Explore the search results and tinker with the widgets detailed in this knowledge base article until you are confident with the results.
Make sure you enable Partial Word Search in your Lucene Search Indexing so your customers don't have to know the exact name of your static content to find them. |
Minimum Version Requirements |
| |
---|---|---|
Prerequisites |
| |
Self Configurable |
| |
Business Function |
| |
BPD Only? |
| |
B2B/B2C/Both |
| |
Ballpark Hours From CV (if opting for CV to complete self config component) |
| |
Ballpark Hours From CV (in addition to any self config required) |
| |
Third Party Costs |
| |
CMS Category |
|
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
Macro Instructions for carrying Article Information through to Feature List
Instructions for carrying Excerpts through from this page to the Feature List Article Page: Add macro / Multiexcerpt (or copy and existing excerpt and edit) or (Copy existing page and place content into existing excerpt macros) On Features List page: Click in the Cell to be populated / add macro / Multiexcerpt Include / Select the Article page and the excerpt (or copy another feature line and edit the 'Article page' source. |