Content Component 26.1
Content Component Help

# LENGTH

The `LENGTH` field specifier (case sensitive) allows you to find documents in which a specified field contains a number of characters that falls within the inclusive range of two numbers specified by you.

## Format

    FieldText=LENGTH{yourNumbers}:yourFields

`yourNumbers` | Two numbers separated by a comma (there must be no space before or after the comma). A document returns only if the number of characters contained in one of `yourFields` falls within the inclusive range of the specified numbers.
`yourFields` | One or more fields. A document returns only if it contains one of these fields, and if the number of characters that this field contains falls within the inclusive range of `yourNumbers`. Separate multiple fields with colons (`:`). There must be no space before or after a colon.

## Example

    FieldText=LENGTH{10,20}:LABEL

A document's `LABEL` field value must be between 10 and 20 characters (inclusive) long for this document to be returned.

    FieldText=LENGTH{1,7}:SLOGAN:LEMA

The `SLOGAN` or `LEMA` field value must be between 1 and 7 characters (inclusive) long for the document to return.

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: LENGTH