IDOL Category Component 12.11

# BITSET

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

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

## Format

    FieldText=BITSET{yourBitSets}:yourBitFields

`yourBitSets` | Type one or more set numbers, separated by commas. These set numbers must be in normal decimal form.
`yourBitFields` | Type 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. Separate multiple fields with colons (`:`). There must be no space before or after a colon.

## Example

    FieldText=BITSET{0,4}:BitField

The binary representation of the hexadecimal value contained in `BitField` must have the bit set (the binary digit is 1) for set 0 or set 4.

For example, if a document has a `BitField` containing 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` containing the hexadecimal value A8, it matches 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 bit set for both sets 2 and 15.

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

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

© Copyright 2022 Micro Focus or one of its affiliates
Version 12.11 | Last updated February 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 Category Component 12.11

Topic Title: BITSET