# Fields whose Values are Boolean Agents

## BOOLEANFIELD

The `BOOLEANFIELD` field specifier (case sensitive) allows you to find documents in which a specified Boolean agent field contains an expression that matches text you specify. A Boolean agent is a Boolean or proximity expression that legacy technologies use to categorize documents.

NOTE: If you are using a `Query` action, Micro Focus recommends that you use the `AgentBooleanField` action parameter rather than the `BOOLEANFIELD` field specifier. However, if you want to match more than one Boolean agent field, you must use the `BOOLEANFIELD` field specifier.

    FieldText=BOOLEANFIELD{yourText}:yourFields

where:

`yourText` | is text. A document returns only if one of `yourFields` contains a Boolean or proximity expression that matches the specified text.
`yourFields` | is one or more Boolean agent fields. A document returns only if it contains one of these fields, and if this field contains a Boolean or proximity expression that matches `yourText`. If you want to specify multiple fields, separate them with colons (there must be no space before or after a colon).

For example:

    BOOLEANFIELD{The cat sat on the mat}:MyFirstBooleanField:MySecondBooleanField

Any document that has a `MyFirstBooleanField` or `MySecondBooleanField` field that contains a Boolean or proximity expression that matches the specified text returns. For example, the Boolean and proximity expressions `cat AND mat`, `cat OR mat`, `cat BEFORE mat`, and `cat DNEAR1 sat` could match The cat sat on the mat. Therefore, documents that contain any of these Boolean and proximity expressions are returned.

Documents whose `MyFirstBooleanField` or `MySecondBooleanField` fields contain, for example, `cat AND mat AND dog` or `mat BEFORE cat` are not returned.

© Copyright 2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm