Releases: algolia/instantsearch-android
Releases · algolia/instantsearch-android
1.0.1
1.0.0
Changes (2017-08-11)
Migration notes
InstantSearchHelper
renamed toInstantSearch
and moved tocom.algolia.instantsearch.helpers
-import com.algolia.instantsearch.ui.InstantSearchHelper;
+import com.algolia.instantsearch.helpers.InstantSearch;
Searcher
is now created withSearcher#create
and instance can be accessed withSearcher#get
// Create Searcher
-Searcher searcher = new Searcher(ALGOLIA_APP_ID, ALGOLIA_SEARCH_API_KEY, ALGOLIA_INDEX_NAME);
+Searcher searcher = Searcher.create(ALGOLIA_APP_ID, ALGOLIA_SEARCH_API_KEY, ALGOLIA_INDEX_NAME);
// Get Searcher
- final int searcherId = getArguments().getInt(KEY_SEARCHER);
- searcher = Searcher.get(searcherId);
+ searcher = Searcher.get();
Searcher
'sshouldLoadMore
renamed tohasMoreHits
- if (searcher.shouldLoadMore()) {
+ if (searcher.hasMoreHits()) {
- Widgets'
attributeName
renamed toattribute
-algolia:attributeName='@{"name"}'
+algolia:attribute='@{"name"}'
NumericSelector
'soperatorName
renamed tooperator
-algolia:operatorName="lt"
+algolia:operator="lt"
RefinementList
'soperator
renamed tooperation
-algolia:operator="and"
+algolia:operation="and"
registerFacetFilters
renamed toregisterFilters
-helper.registerFacetFilters(filterViews);
+helper.registerFilters(filterViews);
Features
- AlgoliaWidget: Replace onReset method by subscription to ResetEvents (ab09f84)
- events: Send events on QueryText{Change,Submit} (75b8b6b)
- Events: NumericRefinementEvents, enabling NumericSelector syncing (ec119c2)
- FacetRefinementEvent: Implement and leverage in OneValueToggle (444f90c)
- RefinementList: Leverage FacetRefinementEvent (669f101)
- ResultEvent: expose response as typed SearchResults (6e62fb8)
- scripts: script for javadoc update (aafc643)
- Stats: autoHide (be4dcd8)
- Stats: Use AppCompatTextView (7a36475)
- TwoValuesToggle: Leverage FacetRefinementEvent (81a7810)
Bug Fixes
- AlgoliaHitView: Make result final (7540f8c)
- docs: Typo (d30216b)
- docs: typo in _hero.scss (289cc11)
- InstantSearch: Process listeners when registering AlgoliaFilters (29eac00)
- InstantSearchHelper: Traverse as ViewGroup rather than View (44caccb)
- RefinementList: Correct attribute obtainment (a01e1e5)
- Searcher: Don't remove directly a facet that was requested twice (5b9a7dd)
- TwoValuesToggle: refine on first value before first toggle (9562f1b)
0.8.0
0.7.0
Features
- New
AlgoliaFacetFilter
interface to define filter Views (16d024a)
- Filters: New filter - NumericSelector (4ddf599)
- Filters: Implement autoHide for NumericSelector, refact to prevent duplication (4740a69)
- NumericRefinement: Function for getting refinement operator given its name (39be9b9)
- NumericSelector: accept a non-filtering option (c73874e)
- Toggle: New widget - toggle facet filter (325b42e)
- Toggle: Setter for template, applied with last results (94e60ec)
- Toggle: Specialize as OneValueToggle (7cc573e)
- Toggle: Specialize as TwoValuesToggle (301a854)
- Toggle: template (4fc49bb)
Bug Fixes
0.6.0
Features
- You can now use the
InstantSearchHelper
and the Widget system even if you don't have anySearchView
(e462661)
Fixes
- SearchBox: Fix iconifiedByDefault usage - we now use the current attribute's value if it is set, and default to false otherwise (ac8ff47)
Improvements
- We declared all data-binding attributes to improve your developing experience (4d8fd3d)
0.5.3
0.5.2
Fixes
- Fix NPE when binding to ProgressBar an attribute that is missing from some records
- In Hits, Log error instead of using a Toast
- Fix an erroneous tag when logging a specific error
Improvements
- Use
IdRes
annotation when relevant - Various improvements to the library's Javadoc
0.5.1
Fixes
- Fix #1: filters manually set with
Searcher.setQuery(new Query.setFilters("..."))
are no more deleted when usingRefinementList
orNumericRefinement
- Fix
Stats
widget's handling of null query/error message - Log error instead of throwing an exception when a request should have been cancelled
0.5.0
Features
- Support of binding to attributes that are missing from some records
Fixes
- Correct Highlighter's usage of JSONPath
- Unify Searcher's constructor behavior
- Keep initial placeholders of ImageViews bound to a Hits widget for recycling
- Fix potential
Multiple dex files define Lorg/objectweb/asm/AnnotationVisitor
build error