createFTIndex (Database - Java)

Creates a full-text index for a database.

Note: This method is new with Release 6.5.

Defined in

Database

Syntax

public void createFTIndex(int options, boolean recreate)
    throws NotesException

Parameters

int options

Combine options with addition.

  • Database.FTINDEX_ALL_BREAKS (4) to index sentence and paragraph breaks
  • Database.FTINDEX_ATTACHED_BIN_FILES (16) to index attached files (binary)
  • Database.FTINDEX_ATTACHED_FILES (1) to index attached files (raw text)
  • Database.FTINDEX_CASE_SENSITIVE (8) to enable case-sensitive searches
  • Database.FTINDEX_ENCRYPTED_FIELDS (2) to index encrypted fields
boolean recreate

A true removes any existing full-text index before creating one. If this parameter is false and an index exists, no action is taken.

Usage

This method works only for local databases.

Example