Skip to content

Releases: algolia/instantsearch-android

1.0.1

18 Aug 08:46
3032297
Compare
Choose a tag to compare

Changes (2017-08-16)

Bug Fixes

  • InstantSearch: Restore constructor for single widget (96eb97c)

1.0.0

16 Aug 15:49
8dc2dfc
Compare
Choose a tag to compare

Changes (2017-08-11)

Migration notes

  • InstantSearchHelper renamed to InstantSearch and moved to com.algolia.instantsearch.helpers
-import com.algolia.instantsearch.ui.InstantSearchHelper;
+import com.algolia.instantsearch.helpers.InstantSearch;
  • Searcher is now created with Searcher#create and instance can be accessed with Searcher#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's shouldLoadMore renamed to hasMoreHits
-       if (searcher.shouldLoadMore()) {
+       if (searcher.hasMoreHits()) {
  • Widgets' attributeName renamed to attribute
-algolia:attributeName='@{"name"}'
+algolia:attribute='@{"name"}'
  • NumericSelector's operatorName renamed to operator
-algolia:operatorName="lt"
+algolia:operator="lt"
  • RefinementList's operator renamed to operation
-algolia:operator="and"
+algolia:operation="and"
  • registerFacetFilters renamed to registerFilters
-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

10 Aug 08:29
Compare
Choose a tag to compare

Migration notice

  • Rename InstantSearchHelper to InstantSearch (f8d31b5)

Features

  • Hits: Keyboard Auto-hiding feature (40815c0)
  • NumericSelector: Most properties can be updated dynamically (387d453)

Bug Fixes

  • NumericRefinement: correct error message for checkOperatorIsValid (8b40e3d)

0.7.0

14 Mar 16:01
5ac6d18
Compare
Choose a tag to compare

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

  • Filters: Throw if a filter misses an attribute (d1a8b4a)
  • InstantSearchHelper: Never register twice a widget (3c9560d)
  • LayoutViews: Ensure no null rootView is passed (b43f000)
  • NumericSelector: correct error message (650321c)

0.6.0

31 Jan 16:31
4b9ba35
Compare
Choose a tag to compare

Features

  • You can now use the InstantSearchHelper and the Widget system even if you don't have any SearchView (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

12 Jan 18:31
08d130f
Compare
Choose a tag to compare

Improvements

  • When loading an image, fit and center it in its ImageView
  • Better error message when the user forgot to give an identifier to a View

0.5.2

12 Jan 15:34
773ca76
Compare
Choose a tag to compare

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

16 Dec 19:10
ae1df59
Compare
Choose a tag to compare

Fixes

  • Fix #1: filters manually set with Searcher.setQuery(new Query.setFilters("...")) are no more deleted when using RefinementList or NumericRefinement
  • 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

01 Dec 11:08
204bd15
Compare
Choose a tag to compare

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

Improvements

  • Faster and more robust Image Loading with Glide, fixing #3

0.4.0

24 Nov 13:39
a2dc40f
Compare
Choose a tag to compare

Features

  • Implement binding of values inside array attributes

Fixes

  • Correct location of Manifest for unit-tests
  • Fill missing documentation of some public constants/members/classes

Improvements

  • Better performance of attributes binding