IDOL Content Component 12.12

# 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 2022 Micro Focus or one of its affiliates
Version 12.12 | Last updated June 2022

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 swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL IDOL Content Component 12.12

Topic Title: LENGTH