Supported Operators for Repeatable Fields

Supported Operators for Repeatable Fields

Predefined Fields

Predefined repeatable fields allow users to select values from a list of predefined options.
Examples:

  • Languages in instance records

  • Statistical codes in item records

Supported Operators

Operator

Expected Behavior

Example

Instance record contains following languages:

German, English, French

Following searches will match the record

Following searches will not match the record

Equals

Matches the entire value of any element in the array.

The operator takes one value only.

  1. French

  2. English

  3. German

 

Any language that is not associated with the instance

Not equal to

None of the array elements match the entire search text.

The operator takes one value only.

Any language that is not associated with the instance.

  1. French

  2. English

  3. German

In

Equivalent to an OR operator across multiple values.

 

The operator takes multiple values.

  1. French

  2. French, German

  3. English, German

  4. German, French, English

  5. German, Dutch

  6. French, Italian

  1. Dutch

  2. Italian

  3. Italian, Dutch

Not in

The opposite of the “In” operator.

 

The operator takes multiple values.

  1. Dutch

  2. Italian

  3. Italian, Dutch

  1. French

  2. French, German

  3. English, German

  4. German, French, English

  5. German, Dutch

  6. French, Italian

Is null/empty

The array is empty.

Accepts True or False.

False

True

Mapping to old (existing) operators

Old operator
as of Sunflower

Equivalent “new” operator
“Supported Operators” defined above

Differences/notes

Old operator
as of Sunflower

Equivalent “new” operator
“Supported Operators” defined above

Differences/notes

contains any

in

rename of existing operator

not contain any

not in

rename of existing operator 

contains all

equals

+ Boolean AND for additional values

need to use Boolean to add additional query parameter for each value (rather than passing in multiple values at once)

existing queries need to be migrated

not contains all

not equal to

+ Boolean AND for additional values

need to use Boolean to add additional query parameter for each value (rather than passing in multiple values at once)

Existing queries need to be migrated.

is null/empty

is null/empty

no change

 

Free Text Fields

Free text repeatable fields allow users to enter any text.
Examples:

  • Administrative notes in instance or item records


Supported Operators

Operator

Expected Behavior

Example

Instance record contains following contributors:

Stuart, James, 1713-1788
  Revett, Nicholas, 1720-1804

Following searches will match the record

Following searches will not match the record

Equals

Matches the entire value of any element in the array.

The operator takes one value only.

  1. Stuart, James, 1713-1788

  2. Revett, Nicholas, 1720-1804

  1. Stuart, James

  2. James Stuart

  3. Stuart, James, 1713

  4. Stuart James 1713-1788

  5. Revett

  6. Revett, Nicholas

    etc

Not equal to

None of the array elements match the entire search text.

 

The operator takes one value only.

  1. Stuart, James

  2. James Stuart

  3. Stuart, James, 1713

  4. Stuart James 1713-1788

  5. Revett

  6. Revett, Nicholas

    etc

  1. Stuart, James, 1713-1788

  2. Revett, Nicholas, 1720-1804

Contains

Any element in the array contains the search text. Partial matches are supported.

The operator takes one value only.

  1. Stuart, James, 1713-1788

  2. Stuart, James

  3. Stuart, James,

  4. Stuart

  5. 1713-1788

  6. Revett, Nicholas, 1720-1804

  7. Nicholas, 1720-1804

  8. Revett, Nicholas

  1. Stuart James 1713-1788

  2. Stuart James

  3. James Stuart

  4. Revett Nicholas 1720-1804

  5. Revett Nicholas

Starts with

Any element in the array starts with the search text.

 

The operator takes one value only.

  1. Stuart, James, 1713-1788

  2. Stuart, James

  3. Stuart, James,

  4. Stuart

  5. Revett, Nicholas, 1720-1804

  6. Revett, Nicholas

  1. 1713-1788

  2. Nicholas, 1720-1804

  3. James

Is null/empty

The array is empty.

False

True

Wildcard

A special character used in a search to represent unknown or variable characters.

Planned for the Umbrellalaf release


Multi-Value Fields

Multi-value repeatable fields contain a mix of predefined and free text values.
Examples:

  • Notes in instance, holdings, and item records

Each element in a multi-value field supports the operators relevant to its type.
For example:

  • Note types support operators for predefined fields

  • Note content supports operators for free text fields