Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In OracleText, a full-text index can be configured to synchronize manually, at regular intervals or on commit. By default, the Blueriq full-text index on aggregates and documents is synchronized every hour. To change this behavior, the index needs to be rebuilt with different parameters. 

UI Text Box
typenote

Always consult the documentation of your particular Oracle database version. The following examples illustrate how to change the synchronization behavior without setting additional options such as whether the index is rebuilt online or offline, whether it is rebuilt in parallel, etc.

UI Text Box
typenote

Please note that each index synchronization increases the index fragmentation, degrading search performance over time. Consult the How to maintain full-text search performance article to learn more about index fragmentation and how to maintain the full-text index.

UI Text Box
typenote

We advice to rebuild the index after every change. This can be done using the following script:

Code Block
languagesql
alter index aq_fulltext_index rebuild;

Changing index synchronization to manual

To change the index synchronization to manual execute the following script:

Code Block
languagesql
ALTER INDEX aq_fulltext_index REBUILD PARAMETERS ('REPLACE METADATA SYNC (MANUAL)');

When changing the full-text index to manual synchronization, any modification to aggregates and documents will not be reflected in the index until the stored procedure CTX_DDL.SYNC_INDEX is not manually called. This has to be done by DBA either manually, or through a scheduled job. 

Changing index synchronization interval

To change the index synchronization to a regular interval, execute the following script:

Code Block
languagesql
ALTER INDEX aq_fulltext_index REBUILD PARAMETERS ('REPLACE METADATA SYNC (EVERY "sysdate+1/24")');

The "1/24" expression represents one twentyfourth of a day (one hour). The expression uses Oracle's job scheduling syntax.

UI Text Box
typenote

When using this synchronization method, the database user needs to have the CREATE JOB system privilege.

Changing index synchronization to on commit

To change the index synchronization behavior so that the index is synchronized after every commit, execute the following script:

Code Block
languagesql
ALTER INDEX aq_fulltext_index REBUILD PARAMETERS ('REPLACE METADATA SYNC (ON COMMIT)');

When this synchronization method is used, the index is updated every time an aggregate or document is created, modified or deleted. 

UI Expand
titleRelated articles

Content by Label
showLabelsfalse
max5
spacesBKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "search" and type = "page" and space = "BKB"
labelssearch

UI Expand
titleReferences
Include Page_survey_survey