Before you begin
To edit configuration files, you must use the wsadmin client. See Starting the wsadmin client
for information about how to start the wsadmin command-line tool.
About this task
You can control which fields are made available to the search index on a per profile-type basis. To do so, enable support for the variable full text index in the profiles-config.xml
file and then specify the properties to omit from the search index in the profiles-types.xml
By default, all properties on the profile record are made available to the search index if the individual property itself supports inclusion in the index. For a list of fields that are included in the search index by default, see Standard properties in the data model
You can manually configure the properties that are made available in the search index in order to meet your specific search requirements. For example, your organization may need to not index a particular property in order to protect sensitive personal information that should not be exposed in search, but that is maintained in the Profiles application.
To specify which fields are indexed for search, complete the following steps:
Parent topic: Customizing Profiles search
Managing the Search index
Standard properties in the data model
- Start the wsadmin client from the following directory of the system on which you installed the Deployment Manager:
is the WebSphere Application Server installation directory and dm_profile_root
is the Deployment Manager profile directory, typically dmgr01.
You must start the client from this directory or subsequent commands that you enter do not execute correctly.
- Start the Profiles Jython script interpreter.
- Enter the following command to access the Profiles configuration files:
If prompted to specify a service to connect to, type 1 to pick the first node in the list. Most commands can run on any node. If the command writes or reads information to or from a file using a local file path, you must pick the node where the file is stored.
- Enter the following command to check out the Profiles configuration files:
- working_directory is the temporary working directory to which the configuration XML and XSD files are copied and are stored while you make changes to them. Use forward slashes (/) to separate directories in the file path, even if you are using the Microsoft Windows operating system.
Note: AIX and Linux only: The directory must grant write permissions or the command does not complete successfully.
- cell_name is the name of the WebSphere Application Server cell hosting the Profiles application. This argument is required and is case-sensitive. If you do not know the cell name, you can determine it by typing the following command in the wsadmin command processor:
- AIX or Linux:
- Microsoft Windows:
- Navigate to the temporary working directory that you specified in the previous step, and then open the profiles-config.xml file in a text editor.
- Locate the <properties> element, and then 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.
|com.ibm.lconn.profiles.config.variableFullTextIndexEnabled||If set to true, the search index is comprised of fields that are marked as searchable in the profiles-types.xml file.|
If set to false, the search index is comprised of all fields that support search.
The default setting is false.
- Navigate to the temporary working directory that you specified in the previous step, and then open the profiles-types.xml file in a text editor.
- For each property that should not get included in the search index, add <fullTextIndexed>false</fullTextIndexed> to the property reference.
For example, to remove description
from the search index, do the following:
- Check in the configuration files using the wsadmin command ProfilesConfigService.checkInConfig().
- Restart the application.
- If the search index was previously built, you will need to delete the existing index. See Managing the search index for more details.