Constructor

GomSearchExpressionnew_for_field

Declaration

GomExpression*
gom_search_expression_new_for_field (
  const char* field,
  const char* query,
  GomSearchMode mode
)

Description

Creates a search expression for field.

Parameters

field

Type: const char*

The field or member name.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
query

Type: const char*

The query string.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
mode

Type: GomSearchMode

The search match mode.

Return value

The caller of the function takes ownership of the data, and is responsible for freeing it.