Comments (4)
I am facing the same issue.
any updates?
from algoliasearch-helper-flutter.
As a workaround, you can add a space to your query if it is the same as the last one, and it will be handled like a new search and return the expected result
from algoliasearch-helper-flutter.
Hi @Ragnarokr45, @MaximusAshraf99,
Apologies for the late response.
We have a unit test that verifies the expected behavior of the rerun method. To further investigate, could you set up a basic test on your end? Here's what you'd need to do:
- Instantiate a searcher.
- Subscribe to its responses stream and collect the responses in a list.
- Use the query method to initiate a search.
- Rerun the same search.
- Afterwards, verify if your list of responses contains exactly 2 entries.
This test procedure might be structured like this:
final searcher = HitsSearcher(
applicationID: 'your_app_id',
apiKey: 'your_api_key',
indexName: 'your_index',
);
final responses = <SearchResponse>[];
searcher.responses.listen(responses.add);
for (var i = 0; i < 3; i++) {
searcher.query('sony');
await Future.delayed(const Duration(milliseconds: 500));
}
expect(
responses.length,
1,
reason: 'Only one response should be emitted for duplicate queries',
);
searcher.rerun();
await Future.delayed(const Duration(milliseconds: 500));
expect(
responses.length,
2,
reason: '2 responses should be emitted after rerun',
);
If this test works as expected and you receive two responses, it indicates that the functionality is operating correctly. In such a case, I would recommend reviewing your implementation to pinpoint potential discrepancies that might be causing different behavior in your environment.
from algoliasearch-helper-flutter.
Related Issues (20)
- Local Cache Feature HOT 1
- FacetList.eventTracker.clickedFilters throws 422 syntax error HOT 1
- Toggle 2 facets with forEach doesn't listen both changes HOT 1
- Simple Filtering Question HOT 1
- Support algolia version 1.0.0 HOT 2
- 'demo_ecommerce' data search error: Method not allowed with this API key HOT 2
- Starter Code in Algolia's Getting started with Flutter Helper Documentation throws an exception
- There's an issue with fetching data for the next page. HOT 2
- HitSearcher is fetching data from Algolia already when just initially adding a stream listener HOT 1
- when the facetlist has not and EventTracker breaks the FaceList usage HOT 1
- Is it possible to send segment events data directly to Algolia? HOT 2
- Add support for "Around" queries HOT 2
- Recommendation features for flutter/dart HOT 1
- [Filter Snapshot]: Unable to read the 'value' value from the filter snapshot. HOT 2
- SearchState page is not merged properly in the last update HOT 1
- Algolia Events triggered from Segment but not shown in algolia dashboard HOT 3
- Hi @VladislavFitz Still facing same issue HOT 2
- Unhandled Exception: FileSystemException: Creation failed, path = 'algolia' (OS Error: Read-only file system, errno = 30) HOT 8
- Dependency Conflict with `algolia_helper` and `http` in `algolia_helper_flutter` HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from algoliasearch-helper-flutter.