Product Documentation

Full-Text Search

Previous Topic

Next Topic

ctdbSetFTICndxExpr

Declaration

CTDBRET ctdbDECL ctdbSetFTICndxExpr(CTHANDLE Handle, pTEXT conditionExpr)

Parameters:

  • Handle [IN] - Full Text Index handle
  • conditionExpr [IN] - Conditional expression

Description

Set the conditional expression for this Full Text Index.

This function is very similar to the ctdbSetIndexCndxExpr function used on regular indexes.

If this function is called on an open table, it verifies that the expression is valid.

Remember: The Full-Text Index must be committed before it can be used. An FTI cannot be created and dropped in the same transaction.

Addition to ctdbSetFTIOption

Alternatively, a new option for ctdbSetFTIOption allows you to set a conditional expression for an existing Full-Text Index (FTI):

  • CTDB_FTI_OPTION_CNDXEXPR - Set the Full-Text Index conditional expression. The pvalue parameter contains the conditional expression to apply. The lvalue is ignored.

Return Values

Value

Symbolic Constant

Explanation

0

CTDBRET_OK

Successful operation.

See c-tree Plus Error Codes for a complete listing of valid c-tree Plus error values.

See Also

  • ctdbSetFTIOption

TOCIndex