The typeahead search is performed by the enable-typeahead-service
microservice. enable-typeahead-service
runs as a Windows service
but it can also be run from the command line. Before running it from the command
line, turn off the service. When you are finished running it from the command line,
restart the service.
enable-typeahead-service
stores a list of unique words per attribute
and per repository. When EnterWorks is installed,
enable-typeahead-service
is configured to maintain the indexes
for all repositories in real-time. You can enable or disable automatic indexing for
specific repositories or for all repositories. You can also manually reindex
specific repositories or all repositories.
Immediately reindex all repositories
To immediately reindex all repositories:- Stop the
enable-typeahead-service
service. - Get the file path for
enable-typeahead-service
:- Open the Windows Services panel, right-click
enable-typeahead-service
, and select Properties. - Copy the entire value for Path to executable. It contains the filepath to the executable, the name of the executable, and a list of parameters.
- Open the Windows Services panel, right-click
- Open a command prompt and go to:
<drive>:\Enterworks\enable2020\services\bin\
- Run the command:
<path-to-executable> -reindexImmediate=1
- When the
enable-typeahead-service
command has finished reindexing the repositories, it will generate a completion message. Open the Windows Services panel and restart theenable-typeahead-service
service.
Immediately reindex a specific repository
To immediately reindex a repository:- Stop the
enable-typeahead-service
service. - Get the file path for
enable-typeahead-service
:- Open the Windows Services panel, right-click
enable-typeahead-service
, and select Properties. - Copy the entire value for Path to executable. It contains the filepath to the executable, the name of the executable, and a list of parameters.
- Open the Windows Services panel, right-click
- Open a command prompt and go to:
<drive>:\Enterworks\enable2020\services\bin\
- Run the command:
where<path-to-executable> -reindexRepositoryId=<repository-id>
<repository-id>
is the ID of the repository you want to reindex. For example:-reindexRepositoryId=10010
- When the
enable-typeahead-service
command has finished reindexing the repository, it will generate a completion message. Open the Windows Services panel and restart theenable-typeahead-service
service.
Enable or disable real-time indexing for all repositories
To enable or disable real-time indexing of all repositories:- Stop the
enable-typeahead-service
service. - Go to:
<drive>:\Enterworks\enable2020\services\install
- Back up
create-enable-typeahead-service.cmd
by copying it to:
To facilitate troubleshooting, append the datetime to the end of the filename of the backup file.<drive>:\Backup
- Edit
create-enable-typeahead-service.cmd
:- Edit the
disableIndexing
setting as desired.disableIndexing=0
: (Default) Real-time indexing is enabled..disableIndexing=1
: Real-time indexing is disabled.
- Save the script.
- Edit the
- Use the
create-enable-typeahead-service.cmd
script. - Restart the
enable-enable-typeahead-service
service.