Skip to main content

FullTextSearchManager.SetFullTextSearchVersion

SetFullTextSearchVersion

Syntax

SetFullTextSearchVersion(<FullTextSearchVersion>)

Parameters

<FullTextSearchVersion> (required)

Type: FullTextSearchVersion. New parameter value of the <FullTextVersion type>. Attention. When you use Version2, at least 10% of free space must remain after full indexing. Otherwise, full-text search is not indexed.

Description

Sets (switches) full-text search version. The default version is Version1. To switch a version to another one, exclusive access to the infobase is required. If exclusive access is not provided, you will see an error message about active sessions.

Availability

Server, thick client, external connection.

Note

Attention. When you use Version2, the hard drive must have at least 10% of free space after full indexing. Otherwise, full-text search is not indexed.

If you switch from Version2 to Version1:

  • All existing full-text search indexing jobs (in progress) will be terminated.
  • All new scheduled indexing jobs from Version2 will be canceled.
  • As soon as it happens, scheduled indexing for Version2 will be stopped.
  • Full-text search Version1 will be applied to all new infobase connections.
  • Indexes from Version2 remain unaffected. If index is not required, the user can clear it before switching to another version.

If you switch from Version1 to Version2:

  • Search server availability will be pre-checked. If the server is unavailable, an error is displayed and the version is not changed. The message contains the reason for server unavailability. In most cases, Java installation is required.
  • All new scheduled indexing jobs will be redirected to the new version 2.
  • Full-text search Version2 will be used for all new infobase connections.
  • Search server Version2 is always ready for use. When you access the server for the first time, it loads indexes that are available from the previous state into memory. Since this state may be obsolete, full reindexing is recommended.
  • Indexes from "Version 1" remain unaffected. If index is not required, the user can clear it before switching to another version.

Example

FullTextSearch.SetFullTextSearchVersion(FullTextSearch.Version2);

Translation

Русская версия: МенеджерПолнотекстовогоПоиска.УстановитьВерсиюПолнотекстовогоПоиска (FullTextSearchManager.SetFullTextSearchVersion)