Specifying properties to expose in the search index
You can manually configure which properties are made available in the search index in order to meet specific search requirements.
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 file.
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.
For information about the underlying Profiles search logic, see the How does search work in HCL Connections Profiles wiki article.
To specify which fields are indexed for search, complete the following steps:
Procedure
- Start the wsadmin client from the following directory
of the system on which you installed the Deployment Manager:
app_server_root\profiles\dm_profile_root\bin
where app_server_root 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.
- 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.Option Description Property Description 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:<property> <ref>description</ref> <updatability>readwrite</updatability> <hidden>false</hidden> <richText>true</richText> <fullTextIndexed>false</fullTextIndexed> </property>
- 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.