...
You can now choose to include such content if you wish, or even add another Search facility just for finding such pages. (Example 2.)
Example 1. Product Search suggestions - results with products only | Example 2. Product Search suggestions with products AND content pages Search Results with contents |
How does Content Search work?
When 'Static Content Search' is selected to be included in the Search facilityBy default, content pages are not included in Product Search. When the search facility is set to include such pages, the search engine will index publicly accessible page content so it is pages so they can be searchable.
Step-by-step guide
...
- To turn on the Content Search feature, navigate to Settings → Feature Management → Content
- In the list of features, toggle on Content Search and click Configure.
- In the 'Content Search Settings' window, toggle on Enable Content Search Feature.
- In Page Content Reindex Task Start Date, set the schedule to a few minutes in the future.
- In Page Content Reindex Task Period in Minutes, accept the default or enter the period in minutes before the system will reindex content pages or enter or enter your preferred period.
- To save any changes and exit, click Click Save and Exit to save and close the window.
2. Configure Indexing Settings
Content pages on your site need to be analysed and added to the search engine's database of web pages to be included in searches. The system takes advantage of Lucene's indexing and searching features to maximise its search capabilities.
- In CMS, navigate to Advanced Settings → Lucene Search Settings.
- Select the Index Settings tab.
- To enable indexing, tick the Enabled checkbox.
- Tick Perform Partial Word Searches (recommended). If this is enabled, as the user types in the search box, products linked to a partial (unfinished) word will be displayed. Leave this box unticked if you want the search to find the exact whole word entered. (Note - partial words in content pages will not appear.) - check check coz does not do partials for content
- To save the settings, click Update.
- Click the Indexing tab.
To reindex content pages, click the Reindex Page Content button.
Info Every time you add a new content page or update an existing one to your site, the new content will only be searchable after reindexing.
3. Set Product Search widget to include content pages
...
- Navigate to Content → Page & Templates → Theme Layout.
- Click the Theme Layout option.
- Locate the Product Search widget and click Edit. In our example, this widget is under Zone:HeaderColumn2.
- In the Product Search window, locate Static Content Search and select 'Include Static Content Search'. (Note - if you are creating a search for content pages only, then select 'Static Content Search Only'.)
- When 'Include Static Content Search' has been selected and Use Suggestions/Product Suggestions is ON, Suggestion headings default to 'Related Products' and 'Related Pages'. (For details on 'Use Suggestions, refer to Product Search widget help.)
If you want to limit the number of results suggested 'Related Pages' returned for content pages in the search box,
a. Scroll down to 'Limit the Product and Static Content Result Returned?' and ensure it is toggled on.
b. In 'Static Content Search Result to Display', enter the maximum number of results to appear.
If there are more results than the maximum number, the button 'View More Pages' will appear for the user to click to view more results.- If 'Show Search Suggestions' is on, click on the Titles tab and edit the 'Search Suggestions Heading text' as required.
(optional) To edit the text in the 'View More Pages' button, click the Buttons tab and edit the content in View More Pages Button Text.- Click Save and if your site is in Page Preview mode, click Publish to effect the changes on your site.
4. Customise the Page Content Search Result template (optional)
You can edit the message that is displayed if displays when a search yields no content results.
- Navigate to Content → Page & Templates → Other Page & Templates.
- Click Edit for the Page Content Search Result widget.
- Click the Notification tab and edit the message.
- Click Save, and if you have your site set to Page Preview, then click Publish to effect the changes.
...
- Navigate to Content → Page & Templates → Products → Product List.
- The Product List Title widget should be at the top of the Product List page. Click Edit.
- The Static Web Pages Found Message displays text relating to search results for content pages. In the default message '{0} web page(s) found with contents related to your search', '{0}' is = the number of pages found.
Change the message to suit the tone of your business if required.- Click Save at the bottom of the page. If your site is set to 'Page Preview', click Publish to effect the changes on your site.
6. Turn off 'Direct Product Display'
Product Search can be set so that if the search finds only one product, the system will automatically redirect to its product page. This feature should be turned off for searches that include Content Pages. To ensure it is off:
- Navigate to Settings → Settings.
- Under the 'General' tab, find 'Allow Redirect To ProdView For Single SearchResult' and make sure it is not checkedticked.
- If it is checkedticked, uncheck untick it and click Update.
7. Test the reconfigured search for content
Once Product Search with Content Page results is configured, you can test it to ensure it is as required for your website.
- Perform a search to see what results are returned. You should be able to see the message from What is displayed depends on the configurations entered in the Product List Title widget in the results display.
If you search returns no results, ensure your the "no results" message from the Product Search widget's notification tab is displayed.- If we click on the Search Suggestions message highlighted in red in the image from Step 1, the system will bring up a list of pages in our site that contain the keyword.
If we you search for a partial word that is not in a title, the system will also return results.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.
You can click on the web page results to display the static content.
If your keyword matches products and static content, then searching and pressing return will give the following results. 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 keyword entered has product and content results, then pressing 'Enter' will list the web pages and products found. Clicking on the number, '4' in the example, will take you to the list of content pages where you click through to the content page.
Additional Information
Multiexcerpt | ||
---|---|---|
| ||
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 it. |
...
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 |
|
...