Inherits from NSObject
Declared in RKSearchEngine.h
RKSearchEngine.m

Tasks

  •   mode

    The type of searching to perform. Can be either RKSearchModeAnd or RKSearchModeOr.

    property
  •   tokenizeQuery

    Whether or not to split the search query at whitespace boundaries or consider the string as a single term

    property
  •   stripWhitespace

    Whether or not to strip the whitespace off of the search terms before searching. This can prevent search misses when the terms have leading/trailing whitespace

    property
  •   caseSensitive

    Whether or not to perform a case-sensitive search

    property
  • + searchEngine

    Construct a new search engine

  • – searchFor:inCollection:

    Search for a string in a collection of RKSearchable objects

  • – searchFor:onProperties:inCollection:

    Search for a string in a collection of objects by specifying an array of properties (strings that correspond to the selectors of properties) that return strings

Properties

caseSensitive

Whether or not to perform a case-sensitive search

@property (nonatomic, assign) BOOL caseSensitive

Discussion

Defaults to NO

Declared In

RKSearchEngine.h

mode

The type of searching to perform. Can be either RKSearchModeAnd or RKSearchModeOr.

@property (nonatomic, assign) RKSearchMode mode

Discussion

Defaults to RKSearchModeOr

Declared In

RKSearchEngine.h

stripWhitespace

Whether or not to strip the whitespace off of the search terms before searching. This can prevent search misses when the terms have leading/trailing whitespace

@property (nonatomic, assign) BOOL stripWhitespace

Discussion

Defaults to YES

Declared In

RKSearchEngine.h

tokenizeQuery

Whether or not to split the search query at whitespace boundaries or consider the string as a single term

@property (nonatomic, assign) BOOL tokenizeQuery

Discussion

Defaults to YES

Declared In

RKSearchEngine.h

Class Methods

searchEngine

Construct a new search engine

+ (id)searchEngine

Declared In

RKSearchEngine.h

Instance Methods

searchFor:inCollection:

Search for a string in a collection of RKSearchable objects

- (NSArray *)searchFor:(NSString *)searchText inCollection:(NSArray *)collection

Declared In

RKSearchEngine.h

searchFor:onProperties:inCollection:

Search for a string in a collection of objects by specifying an array of properties (strings that correspond to the selectors of properties) that return strings

- (NSArray *)searchFor:(NSString *)searchText onProperties:(NSArray *)properties inCollection:(NSArray *)collection

Declared In

RKSearchEngine.h