GLSearchFilter


@interface GLSearchFilter : NSObject

GLSearchFilter class contains a set of parameters that defines filter for GLSearch

  • Undocumented

    Declaration

    Objective-C

    -(instancetype _Nonnull) init __attribute__((unavailable("Empty filter is not allowed. Please use proper init method.")));
  • Initializes filter to search objects that have word that starts with any of words in any tags; E.g. [[GLSearchFilter alloc] initWithTag:[@alt_name] words:@[@St, @Ap]] should find object find objects with tag alt_name=Sunny St, alt_name=Apple, alt_name=Apple Store, but it shouldn’t find alt_name=aStore

    Declaration

    Objective-C

    - (instancetype _Nonnull)initWithWords:(NSArray<NSString *> *_Nonnull)words
                                   andTags:(NSArray<NSString *> *_Nonnull)tags;

    Parameters

    words

    Words

    tags

    Tags

  • Initializes filter to search object that have word that starts with any of words in tag name or name:xx (xx is locale from localeSettings). Same as [[GLSearchFilter alloc] initWithWords:words andTags:@[name,name:en,…]]

    Declaration

    Objective-C

    - (instancetype _Nonnull)initWithNames:(NSArray<NSString *> *_Nonnull)words
                            localeSettings:
                                (GLMapLocaleSettings *_Nonnull)localeSettings;

    Parameters

    words

    Words

    localeSettings

    locale settings *

  • Initializes filter to search object that word that starts with word in tag name or name:xx (xx is locale from localeSettings). Same as [[GLSearchFilter alloc] initWithNames:@[word] localeSettings:localeSettings]

    Declaration

    Objective-C

    - (instancetype _Nonnull)initWithName:(NSString *_Nonnull)word
                           localeSettings:
                               (GLMapLocaleSettings *_Nonnull)localeSettings;

    Parameters

    word

    Word

    localeSettings

    locale settings *

  • Initializes filter to search object that word that starts with word in tag name or name:xx(xx is locale from localeSettings) or any other geocode tag.

    Declaration

    Objective-C

    - (instancetype _Nonnull)
    initWithGeocodeNames:(NSArray<NSString *> *_Nonnull)words
          localeSettings:(GLMapLocaleSettings *_Nonnull)localeSettings;

    Parameters

    words

    Words

    localeSettings

    locale settings *

  • Initializes filter to search objects that matches to category

    Declaration

    Objective-C

    - (instancetype _Nonnull)initWithCategory:(GLSearchCategory *_Nonnull)category;

    Parameters

    category

    Category object

  • If set to YES values will be checked for exact match. Default valuse if NO *

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) BOOL exactMatch;