Open topic with navigation

# Fields that Contain BitFieldType Information

## BITSET

The `BITSET` field specifier (case sensitive) allows you to find documents with a `BitFieldType` field that contains a value where the specified bit is set. This allows you to search for documents that belong to a particular set of documents.

Note: You can use the `BITSET` field specifier only for `BitFieldType` fields.

    FieldText=BITSET{yourBitSets}:yourFields

where:

`yourBitSets` | are one or more set numbers, separated by commas. These set numbers must be in normal decimal form.
`yourFields` | are one or more `BitFieldType` fields. A document returns only if it contains one of these fields, and if this field contains a value where the bit corresponding to `yourBitSets` is set. To specify multiple fields, you must separate them with colons (there must be no space before or after a colon).

Examples:

    FieldText=BITSET{0,4}:BitField

This example matches any document where the binary representation of the hexadecimal value contained in `BitField` has the bit set (the binary digit is `1`) for set 0 or set 4.

For example, if a document has a `BitField` that contains the hexadecimal value `A4`, it does not match the query. The binary representation is `10100100`, where the bits for set 0 and 4 are both `0`, so the document is not part of these sets.

If the document has a `BitField` that contains the hexadecimal value `A8`, it does match the query. The binary representation is `10101000`, where the bit for set 4 is a `1`, so the document is part of set 4.

    FieldText=BITSET{2}:BitField AND BITSET{15}:BitField

The binary representation of the hexadecimal value contained in `BitField` must have the bits switched on for both sets 2 and 15.

For example, if a document has a `BitField` that contains the hexadecimal value `B110`, it does not match the query. The binary representation is `1011000100010000`, where the bit is set to `1` for set 15, but not for set 2.

If the document has a `BitField` that contains the hexadecimal value `B114` it matches the query. The binary representation is `1011000100010100`, where the bit is set to `1` for both set 15 and set 2.

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close We welcome your comments! To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm