Customize settings for the search type-ahead
We can configure tuning parameters to adjust the behavior of the type-ahead tool used for Profiles search on the Directory page.
To edit configuration files, start wsadmin.sh
The type-ahead tool used for Profiles search makes it easier for users to find people by suggesting names from the company directory as they type in the search field. We can configure settings in profiles-config.xml to adjust the performance of the type-ahead tool.
To configure tuning parameters for the search type-ahead in Profiles.
- Check out the Profiles configuration files:
app_server_root/profiles/Dmgr01/bin
./wsadmin.sh -lang jython
execfile("profilesAdmin.py")
ProfilesConfigService.checkOutConfig("/tmp", "cell_name")To determine cell name:
print AdminControl.getCell()
- Navigate to the temporary working directory specified in the previous step, and then open profiles-config.xml in a text editor.
- Locate the <properties> element, and add the following property elements to it if they are not already present, or edit the values of the properties as required, if they are present.
Property Description com.ibm.lconn.profiles.config.ui.ptas.fireOnKeys Number of keys that must be pressed before the search request is submitted. com.ibm.lconn.profiles.config.ui.ptas.delayBetweenKeys Delay in milliseconds after the last key is pressed before the search request is submitted. com.ibm.lconn.profiles.config.ui.ptas.maxResults Number of search results to display. com.ibm.lconn.profiles.config.ui.ptas.liveNameSupport Whether to attach a Profiles business card to each name. This property can be set to true or false. com.ibm.lconn.profiles.config.ui.ptas.expandThumbnails Whether to expand the profile picture provided in the search results. This property can be set to true or false. Note that when users mouse over a profile picture, there is a delay before the picture is expanded. com.ibm.lconn.profiles.config.ui.ptas.blankOnEmpty Whether the search results remain on display if the contents of the search field are deleted. This property can be set to true or false. When set to true, the search results are removed.
The following code provides an example of the settings for the type-ahead feature:
<!-- directory page: people type-ahead search (ptas) --> <property name="com.ibm.lconn.profiles.config.ui.ptas.fireOnKeys" value="1" /> <property name="com.ibm.lconn.profiles.config.ui.ptas.delayBetweenKeys" value="0" /> <property name="com.ibm.lconn.profiles.config.ui.ptas.maxResults" value="10" /> <property name="com.ibm.lconn.profiles.config.ui.ptas.liveNameSupport" value="true" /> <property name="com.ibm.lconn.profiles.config.ui.ptas.expandThumbnails" value="true" /> <property name="com.ibm.lconn.profiles.config.ui.ptas.blankOnEmpty" value="true" />
Parent topic:
Customize Profiles search