You can change the display field in full-text search results
for indexed record types without re-indexing.
Before you begin
This scenario should take approximately five minutes to
complete.
About this task
This scenario uses an HCL Compass schema
repository with a connection named TextSearch
and a user database named
SAMPL
. The path specifications assume that you are running on the Windows™ operating system.
You want to change the display
field in the search results for one or more record types.
Procedure
- Edit your full-text search entity file: D:\CQ.Search\TextSearch_SAMPL\Entity-TextSearch-SAMPL.txt.
For each record type for which you want to change the display field,
delete the prepended ampersand (&) from the old display field
name and prepend an ampersand (&) to the new display field name.
See Enabling full-text search on the SAMPL database, Step 2, for details.
Remember: A record type can have only one display field.
- In a command-prompt window, run the cqtsadmin.pl command
with the update_fts_prop_files and enable_cqweb_fts options:
cqperl cqtsadmin.pl --username admin --password secret --dbset TextSearch -userdb
SAMPL --ftshome D:\CQ.Search --update_fts_prop_files --enable_cqweb_fts
Specifying the
update_fts_prop_files command-line
option updates the
HCL Compass search
properties file,
fts-home\dbset_userdb\CQ-dbset-userdb.xml.
Specifying
the enable_cqweb_fts command-line option enables
the Full Text option in the HCL Compass Web
client.
Results
You have changed the display field in full-text search
results for one or more indexed record types.
Important: HCL Compass Web
client users must log off and log on again to see the display-field
change.