- Add support for Swift 4
Highlighter
class: the init
method changed from init(highlightAttrs: [String: Any])
to init(highlightAttrs: [NSAttributedStringKey: Any])
.
- Add support for Carthage
This new major release has been made to adapt this core library to the needs of the InstantSearch iOS library.
- Add more extensibility to the Searcher result handler methods. This brings changes in the signature of the
SearcherDelegate
method and thesearcher.resultHandlers
:- For the
SearcherDelegate
: Fromsearcher(_:didReceive:error:params:)
tosearcher(_:didReceive:error:userInfo:)
- For the
searcher.resultHandlers
: From(results:error:)
to(results:error:userInfo:)
- For the
- Notifications sent when refinement changes through the
RefinementChangeNotification
notification name. You can use theuserInfoNumericRefinementChangeKey
anduserInfoFacetRefinementChangeKey
to listen to numeric and facet refinement changes. - FacetResults class added that can be used for searchForFacetValues
- The Searcher now keeps the latest
hits
andresults
in its state - Add helper to reverse highlights in a text
- Library's deployment iOS target moved from 9.3 to 8.0.
- Upgrade to version 4.8 of the Swift API Client (fixes compilation issue)
First official release! 🎉 Merry Christmas to everyone! 🎄⛄️🎁
- Leverage the new search for facet values feature of the Swift API Client.
Searcher.searchForFacetValues(...)
works like the equivalent method onIndex
, but automatically takes facet and numeric refinements into account, as well as the conjunctive/disjunctive state of facets.
- Limit number of pending requests per
Searcher
instance. This is to avoid stalling the request queue if response times are long. The limit can be adjusted viaSearcher.maxPendingRequests
.
- Fix handling of numeric refinements when disjunctive faceting is used
- [refact] Rebrand as "InstantSearch Core for Swift". Breaking change: Names of Git repository, module and pod have changed.
- The
Searcher
class now accepts a delegate (in addition to result handlers and event notifications) - [refact] New handling of query numeric and facet filters
- [doc] New documentation structure
- [test] Add unit tests for
Highlighter
- Support Swift 3
- The naming has been revised to comply with the Swift API Design Guidelines
- Better Objective-C mappings
- New
SearchProgressController
class
- Fix memory leaks
- Improve request cancellation
Warning: Beta version. Until version 1.0 is released, incompatible changes may occur.
Searcher
class to manage a search sessionHighlightRenderer
class to render highlight markup into rich textDebouncer
class to debounce frequent calls