Topic Customizing Search Results page
Applies_To Web Publisher
Version 3.x, 4.x, 5.x, 6.x
Last_Update April 6, 2006
Question I use askSam and the Web Publisher. I need to have certain fields that are in our database show up in the search results. How can I manage that?
Answer Yes, it is possible to customize the search results.
In order to have certain fields appear in the search results page (on the web), you will first need to customize your search in askSam. This can be done by following this -
1. Open the askSam database.
2. Goto View >> Search Results Properties
3. Click on Columns
4. You can add new fields that you want to have them appear by selecting them and clicking add. You can also remove the unwanted/default fields.
5. At this point we are modifying the "(default)" search result views. However, you also have the option of creating new search views based on your needs. Based on the names that you provide to these newly created search result views, you will need to modify the code in the search page of your website. But if you have not created new search result views and have only modified the "(default)" search results view then you would not have to worry about the change in code.
6. In the search page of your website, you will have to modify the following code -
<select id="ViewName" name="ViewName">
<option selected>(default)</option>
<option>(Summary)</option>
<option>(Detailed)</option>
<option>(Entire Page)</option>
</select>
Say for example, I created a new search result view and named it as a "Products" view, then I will add the following code to the above - <option>Products</option> and so on...
If I just changed the default search result properties, then I won't have to worry about as it appears by default.
Resolution
|