Relative Content

Tag Archive for flutteralgolia

Algolia search just hangs when ran the 2nd time?

… @override Future<List<String>> searchPosts({ required String author, required String title, required String content, }) async { _postsSearcher.applyState( (state) => state.copyWith( query: content, page: 0, hitsPerPage: 1, facetFilters: [ ‘author:$author’, ‘title:$title’, ], ), ); final results = await _searchPage.first; final postIds = results.items.map((post) => post.postId).toList(); return postIds; } } class HitsPage { const HitsPage(this.items, this.pageKey, this.nextPageKey); […]