Skip to content

Commit d0e3e60

Browse files
author
Clément Le Provost
committed
Rename attributesToIndex to searchableAttributes
NOTE: This is a build-time setting, so it is *not* part of the `Query` class. But it is mentioned in the docs.
1 parent 3f3b812 commit d0e3e60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/Query.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,10 +323,10 @@ public class Query : NSObject, NSCopying {
323323
}
324324
// NOTE: Objective-C bridge moved away to `_objc_Query`
325325

326-
/// List of attributes you want to use for textual search (must be a subset of the attributesToIndex index setting).
326+
/// List of attributes you want to use for textual search (must be a subset of the `searchableAttributes` index setting).
327327
/// Attributes are separated with a comma (for example "name,address" ), you can also use a JSON string array
328328
/// encoding (for example encodeURIComponent('["name","address"]') ). By default, all attributes specified in
329-
/// attributesToIndex settings are used to search.
329+
/// `searchableAttributes` settings are used to search.
330330
@objc public var restrictSearchableAttributes: [String]? {
331331
get { return Query.parseStringArray(self["restrictSearchableAttributes"]) }
332332
set { self["restrictSearchableAttributes"] = Query.buildJSONArray(newValue) }
@@ -432,7 +432,7 @@ public class Query : NSObject, NSCopying {
432432
}
433433
// NOTE: Objective-C bridge moved away to `_objc_Query`
434434

435-
/// List of attributes on which you want to disable typo tolerance (must be a subset of the `attributesToIndex`
435+
/// List of attributes on which you want to disable typo tolerance (must be a subset of the `searchableAttributes`
436436
/// index setting).
437437
@objc public var disableTypoToleranceOnAttributes: [String]? {
438438
get { return Query.parseStringArray(self["disableTypoToleranceOnAttributes"]) }

0 commit comments

Comments
 (0)