Content Component 26.1
Content Component Help

# STRING

The `STRING` field specifier (case sensitive) allows you to specify one or more strings of which one must be contained as a substring in a specified field.

NOTE: The field specifier speed can be optimized by restricting the field to the MatchType property type.

## Format

    FieldText=STRING{yourStrings}:yourFields

`yourStrings` | One or more strings. A document returns only if one of these strings is a substring of the value in one of `yourFields`. You can match strings that contain punctuation (but see Note) or consist of several words. NOTE: Strings in the query must be percent-encoded to ensure that any commas or curly braces that are part of a string are not interpreted as query syntax. If you send HTTP requests using the content-type `application/x-www-form-urlencoded` you must then percent-encode all parameter values, meaning that any commas or curly braces that are part of a string are percent-encoded twice (such that a comma is represented by the sequence `%252c`). For more information, see Percent Encoding in Queries.
`yourFields` | One or more fields. A document returns only if it contains one of these fields, and if the value in this field is contains one of `yourStrings` as a substring.Separate multiple fields with colons (`:`). There must be no space before or after a colon.

## Example

    FieldText=STRING{cat,dog}:ANIMAL

The `ANIMAL` field value must contain the substring `cat` or `dog`.

    FieldText=STRING{old cat}:ANIMAL:TOPIC

The `ANIMAL` or `TOPIC` field value must contain the substring `old cat`. For example if the `ANIMAL` field has the value `old cat`, `old caterpillar` or `bold cats`, the document returns.

    FieldText=STRING{example.com}:COMPANY

The `COMPANY` field value must contain the substring example.com. For example, if the `COMPANY` field has the value `example.com` or `http://www.example.com/content/home`, the document returns.

    FieldText=STRING{a%252Cb}:MISC

The `MISC` field value must contain the substring `a,b`. For example, if the `MISC` field has the value `a,b` or `a,b,c,` the document returns.

Copyright 2025 Open Text
Version 26.1 | Last updated January 2026

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Content Component 26.1

Topic Title: STRING