Skip to content

Text Search Support

To optimize search performance, wildcard related searches (like "Contains" and "Starts with") are limited to text fields under 1024 bytes. For larger text fields, full-text searches using "match words" and "match phrase" operators are supported.

Match words : A full-text search that considers whole words without regard to their order.

Match phrase: A full-text search that requires words to appear in the exact specified order.

For Match and Match Phrase support, set type to SEARCH_TEXT for the text field in columns_filter in the dashboard

The following example illustrates how this works

  "columns_filter": [
    {
      "id": "message",
      "label": "Message",
      "type": "TEXT"
    },
    {
      "id": "message",
      "label": "Message_Full",
      "type": "SEARCH_TEXT"
    }
  ]

Sample Data

In the column filters section, for type TEXT normal text operations shows up as follows:

Message

For example, when we search for text, the large message is ignored

Message Is Not Empty

In the column filters section, for type SEARCH_TEXT normal text operations shows up as follows:

Message Full

For example, with type “SEARCH_TEXT”, the large message is not ignored

Message Not Ignored

Order is irrelevant for Match words. In the below example when a user typed “error message”, the search output included all the messages that contained the words “error” and “message

Error Message

Error Message

Order is important for Match phrases. In the below example when a user typed “error message”, the search output included only the data which contains “error message” in that order.

Match Phrase Output

Match Phrase Output

In CFXQL, the user can accomplish Match words and Match phrase via:

<text_field_name>.match or <text_field_name>.match_phrase

From the advanced CFXQL option, the following illustrates its usage

Advanced

CFXQL

CFXQL Output

CFXQL Output

CFXQL Output