Moss search learning records (8): Advanced Search customization (medium)
The previous section describes how to find documents that meet the following conditions in advanced search ..." The content of the search box is relatively simple.
Next we will continue to introduce the customization of the "narrow search scope" section in the intermediate section.
We can see that by default, there are two parts of content that can be customized, the search language and the search result type. In addition, some of the hidden customizable content is the search range, which is the search range we mentioned earlier. However, the configuration of advanced search is slightly different, these differences only differ in website configuration, not in shared service management. The search range configuration in shared service management is the same as previously mentioned.
The following describes the configurations.
1. First, open the advanced search page of the website search center and click "website operations-edit webpage" on the page to enter the editing mode of the page.
2. Click the edit menu of the "advanced search box" webpart, and select "modify shared Web parts" from the menu ". This will open the property editing window for the part. The red part is about the configuration of the "zoom out" section. Another part is configured in the "attributes" section, which will be discussed later.
3. Range labels
This attribute modifies the text content in the red box.
|
After the attribute value is changed to "search range selection", the effect is as follows: |
4. Display Range selector
We can see that this property is unselected by default. If we select it, a selector with a selectable range will appear in the search range section, you can perform more precise searches within a specified range based on your needs.
|
Modify this attribute to the selected status. The effect is as follows:
As you can see, only the following range is selected. The range here is the custom search range in the search configuration section of shared service management described earlier. There is a small problem here, but it does not affect the use. You can see that the background color of the "add attribute limit" label in the third part is on the result type. |
5. Range label
It can be seen that this property is empty, and its control part is the label text content in the displayed range section.
|
By default, if the value is null, the provided "only the following range" is displayed. If it is set to another text content, the text content is displayed as the set text content. For example, set "select range". The effect is as follows. |
6. display group
Advanced Search is configured by default. Where is the group? It is the Group configured in the search range of the website set where the search center is located.
|
Go to the website set where the search center is located and click "website operations-website Settings". If the publishing function is enabled, go to "website operations-website settings-modify all website Settings ", go to the website settings page. Under "website set management", you can find the "search range" setting and click to enter. |
You can see the following content.
In the figure, you can see the group selected in the display group for advanced search, and the "display Range selector" attribute Just configured, the range option is the range in the "Advanced Search" group. |
Click "create display group" |
Enter "Custom group" in the title. All the following optional ranges are in the gray state. Don't worry. You can select these options. Just click them with the mouse, for example, select "All websites", "technical category", and "archive in March ".
|
The default range is available at the bottom of the list. |
Select the default range and click OK to create a new range display group. |
|
Return to the advanced search page, modify the "display group" attribute of the "advanced search box" component to "Custom group" you just created, and click "OK, the defined range is displayed, so that you can search within the specified range or across lists. |
7. Display language Selector
Used to control whether the language selection section in "narrow search scope" is displayed. The default value is displayed.
|
If you do not need to select a language, set "Display language selector" to "unselected. The effect after setting is as follows: |
8. language labels
This attribute is used to control the text content in the red part. If the content is empty, the default text "only the following languages" is displayed ".
|
Change to "Select language". The effect is as follows: |
9. display result type Selector
This attribute is used to control whether the result type selection part is displayed in the "narrow search scope" section.
|
If you do not need to select the result type, modify the attribute to the unselected status. Note: The third part of "add attribute limit" of advanced search will also be hidden. The effect is as follows: |
10. Result type label
This attribute is used to control the text content in the red part. If the content is empty, the default text "result type" is displayed ".
|
Change to "select search result type". The result is as follows: (The modification is ineffective here. I wonder if there is a problem) |
The scope configuration section of advanced search is complete. The attributes section is introduced later, and a search for more complex ranges is introduced by using metadata attributes.