Product Documentation

Full-Text Search

Previous Topic

Next Topic

ctdbAddFTIFieldByName

Declaration

CTDBRET ctdbAddFTIFieldByName(CTHANDLE Handle, NINT Number, pTEXT FieldName, ULONG mode)

Description

Add a new field to an FTS index.

  • Handle is a table handle (CTDBTABLE).
  • Number is a Full-Text Search Index number.
  • FieldName is a Field name.
  • 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

Error code

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.

See Also

TOCIndex