Comments (4)
@olamarche Good news! Multi-Query option is now supported. Update the SDK version to ^0.1.6
We have created a whole new interface just for Multi-Query. You can perform the following action:
- Add Query
.addQuery(AlgoilaQuery query)
- Add Queries
.addQueries(List<AlgoilaQuery> queries)
- Clear Queries
.clearQueries()
AlgoliaQuery queryA = algolia.instance.index('users').search('john');
AlgoliaQuery queryB = algolia.instance.index('jobs').search('business');
// Perform multiple facetFilters
queryA = queryA.setFacetFilter('status:active');
queryA = queryA.setFacetFilter('isDelete:false');
// Perform multiple facetFilters
queryB = queryB.setFacetFilter('isDelete:false');
// Get Result/Objects
List<AlgoliaQuerySnapshot> snap =
await algolia.multipleQueries.addQueries([queryA, queryB]).getObjects();
from dart_algolia.
I would LOVE this too <3
from dart_algolia.
Hi @olamarche & @Mikkelet,
Thank you all for selecting dart_algolia package for your Dart projects and supporting the development.
Multiple queries are in our pipeline of our TODOS, we should be rolling-out that functionality by the end of this May.
Till then you can use an alternative method, I know it's not that efficient as Multiple queries, but just a workaround:
AlgoliaQuery queryA = algolia.instance.index('indiceA').search('john');
AlgoliaQuery queryB = algolia.instance.index('indiceB').search('john');
// Perform multiple facetFilters
queryA = queryA.setFacetFilter('status:published');
queryA = queryA.setFacetFilter('isDelete:false');
// Perform multiple facetFilters
queryB = queryB.setFacetFilter('status:published');
queryB = queryB.setFacetFilter('isDelete:false');
// Get Result
List<AlgoliaQuerySnapshot> snap = await Future.wait([queryA.getObjects(), queryB.getObjects()]);
🍻
from dart_algolia.
@nhathiwala Thank you for the fix
I'm look forward for the next release!
from dart_algolia.
Related Issues (20)
- facetFilter does not work. HOT 1
- setEnablePersonalization not supported?
- infinite scrolling
- Decoding JSON in an Isolate
- facetFilter dont work when inputting variable HOT 1
- Override default list of searchable attributes for the current search HOT 1
- Null exception from `getObjectsByIds` method in case of object not fount HOT 1
- Refused to set unsafe header "User-Agent"
- Numeric Filters is not being populated to final query HOT 1
- Feature `sortBy`
- Type 'List<String>' is not a subtype of type 'String' in `AlgoliaMultiIndexesReference` HOT 2
- Something like array.contains HOT 2
- Consider upgrading your http dependencies to version 1.0.0 HOT 2
- Get the userData in AlgoliaQuerySnapshot
- Update to latest uuid version (4.X.X) and http (1.X.X) HOT 5
- Is this project still maintained? HOT 7
- Does this package support fetch popular searches?
- googleapis_auth, http, algolia dependency version solving failed
- Incorrect encoding of URL Components
- Implement the index/settings forwardToReplicas query parameter (pull request available)
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 dart_algolia.