<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AddressBook",
  "identifier" : "/documentation/AddressBook/ABSearchComparison",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Address Book"
    ],
    "preciseIdentifier" : "c:@T@ABSearchComparison"
  },
  "title" : "ABSearchComparison"
}
-->

# ABSearchComparison

Constants used to specify the type of comparison beingmade.

```
typealias ABSearchComparison = CFIndex
```

## Discussion

These constants are used in a call to the [`ABGroupCreateSearchElement(_:_:_:_:_:)`](/documentation/AddressBook/ABGroupCreateSearchElement(_:_:_:_:_:)) or [`ABPersonCreateSearchElement(_:_:_:_:_:)`](/documentation/AddressBook/ABPersonCreateSearchElement(_:_:_:_:_:)) functionto specify the type of comparison being made.

## Topics

### Constants

[`var kABEqual: _ABSearchComparison`](/documentation/AddressBook/kABEqual)

Search for elements that are equal to the value.

[`var kABNotEqual: _ABSearchComparison`](/documentation/AddressBook/kABNotEqual)

Search for elements that are not equal to thevalue.

[`var kABNotEqualCaseInsensitive: _ABSearchComparison`](/documentation/AddressBook/kABNotEqualCaseInsensitive)

Search for elements that are not equal to the value, ignoring case.

[`var kABLessThan: _ABSearchComparison`](/documentation/AddressBook/kABLessThan)

Search for elements that are less than thevalue.

[`var kABLessThanOrEqual: _ABSearchComparison`](/documentation/AddressBook/kABLessThanOrEqual)

Search for elements that are less than or equalto the value.

[`var kABGreaterThan: _ABSearchComparison`](/documentation/AddressBook/kABGreaterThan)

Search for elements that are greater than thevalue.

[`var kABGreaterThanOrEqual: _ABSearchComparison`](/documentation/AddressBook/kABGreaterThanOrEqual)

Search for elements that are greater than orequal to the value.

[`var kABEqualCaseInsensitive: _ABSearchComparison`](/documentation/AddressBook/kABEqualCaseInsensitive)

Search for elements that are equal to the value,ignoring case.

[`var kABContainsSubString: _ABSearchComparison`](/documentation/AddressBook/kABContainsSubString)

Search for elements that contain the value.

[`var kABContainsSubStringCaseInsensitive: _ABSearchComparison`](/documentation/AddressBook/kABContainsSubStringCaseInsensitive)

Search for elements that contain the value,ignoring case.

[`var kABPrefixMatch: _ABSearchComparison`](/documentation/AddressBook/kABPrefixMatch)

Search for elements that begin with the value.

[`var kABPrefixMatchCaseInsensitive: _ABSearchComparison`](/documentation/AddressBook/kABPrefixMatchCaseInsensitive)

Search for elements that begin with the value, ignoring case.

[`var kABSuffixMatch: _ABSearchComparison`](/documentation/AddressBook/kABSuffixMatch)

Search for elements that end with the value.

[`var kABSuffixMatchCaseInsensitive: _ABSearchComparison`](/documentation/AddressBook/kABSuffixMatchCaseInsensitive)

Search for elements that end with the value, ignoring case.

[`var kABBitsInBitFieldMatch: _ABSearchComparison`](/documentation/AddressBook/kABBitsInBitFieldMatch)

Search for elements that match the bits in ABPersonFlags.

[`var kABDoesNotContainSubString: _ABSearchComparison`](/documentation/AddressBook/kABDoesNotContainSubString)

Search for elements that do not contain the value.

[`var kABDoesNotContainSubStringCaseInsensitive: _ABSearchComparison`](/documentation/AddressBook/kABDoesNotContainSubStringCaseInsensitive)

Search for elements that do not contain the value, ignoring case.

[`var kABWithinIntervalAroundToday: _ABSearchComparison`](/documentation/AddressBook/kABWithinIntervalAroundToday)

Search for elements that are within a time interval (in seconds) forward or backward from today.

[`var kABWithinIntervalAroundTodayYearless: _ABSearchComparison`](/documentation/AddressBook/kABWithinIntervalAroundTodayYearless)

Search for elements that are within a time interval (in seconds) forward or backward from this day in any year.

[`var kABNotWithinIntervalAroundToday: _ABSearchComparison`](/documentation/AddressBook/kABNotWithinIntervalAroundToday)

Search for elements that are *not* within a time interval (in seconds) forward or backward from today.

[`var kABNotWithinIntervalAroundTodayYearless: _ABSearchComparison`](/documentation/AddressBook/kABNotWithinIntervalAroundTodayYearless)

Search for elements that are *not* within a time interval (in seconds) forward or backward from this day in any year.

[`var kABWithinIntervalFromToday: _ABSearchComparison`](/documentation/AddressBook/kABWithinIntervalFromToday)

Search for elements that are within a time interval (in seconds) forward from today.

[`var kABWithinIntervalFromTodayYearless: _ABSearchComparison`](/documentation/AddressBook/kABWithinIntervalFromTodayYearless)

Search for elements that are within a time interval (in seconds) forward from this day in any year.

[`var kABNotWithinIntervalFromToday: _ABSearchComparison`](/documentation/AddressBook/kABNotWithinIntervalFromToday)

Search for elements that are *not* within a time interval (in seconds) forward from today.

[`var kABNotWithinIntervalFromTodayYearless: _ABSearchComparison`](/documentation/AddressBook/kABNotWithinIntervalFromTodayYearless)

Search for elements that are *not* within a time interval (in seconds) forward from this day in any year.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)