Product Documentation

Full-Text Search

Previous Topic

Next Topic

ctdbAddFTIField

Declaration

CTDBRET ctdbAddFTIField(CTHANDLE Handle, CTHANDLE FieldHandle, ULONG mode)

Description

Add a new field to a Full-Text Search index.

  • Handle is a Full-Text Search handle (CTDBFTS)
  • FieldHandle is a field handle (CTDBFIELD)
  • mode is a Full-Text search field matching mode:

Mode

Code

Description

CTDB_FTI_MODE_REG

0x00000001

Regular - Default field treatment.

CTDB_FTI_MODE_UTF8

0x00000002

Field format in UTF8.

CTDB_FTI_MODE_UTF16

0x00000004

Field format in UTF16.

Return Values

Mode

Code

Description

CTDBRET_NOTFTS

4149

Not a Full-Text Search handle

CTDBRET_FTS_DEFINED

4150

Full-Text Search already defined on table

See FairCom DB Error Codes for a complete listing of valid FairCom DB error values.

Example

See Full-Text Search Example.

See Also

TOCIndex