Comments (4)
@SyedIsmailAhamed This Objective-C API client is deprecated (has been for several months, now).
All Objective-C samples from the documentation (like the Filtering & Faceting guide to which you are probably referring) actually use the Swift API client. Note that you can still code in Objective-C and use the Swift client; we went to great lengths to ensure that.
There was indeed no disjunctive faceting in the legacy Objective-C client, and there will never be, as this project only receives critical bug fixes.
So my best advice is to migrate to our Swift client. It should be rather straightforward. Furthermore, there is a Migration guide to help you in this process.
from algoliasearch-client-objc.
Thanks,I managed to to use Swift API client in objective c, but am not getting how do i initialise index object.
from algoliasearch-client-objc.
/// A proxy to an Algolia index.
///
/// You cannot construct this class directly. Please use Client.getIndex()
to obtain an instance.
///
am unable to get Client.getIndex()
from algoliasearch-client-objc.
@SyedIsmailAhamed What do you mean by "unable"?
This code should compile fine with version 3.x:
Client* client = [[Client alloc] initWithAppID:@"YOUR_APP_ID" apiKey:@"YOUR_API_KEY"];
Index* index = [client getIndex:@"YOUR_INDEX_NAME"];
... as can be seen in our Objective-C demo.
Warning: If you use the latest version of the Swift client (4.0), Client.getIndex(_:)
is now Client.index(withName:)
(-[Client indexWithName:]
in Objective-C).
from algoliasearch-client-objc.
Related Issues (13)
- Crash occured while experiencing 400 error HOT 1
- AFNetworking 3.0, what should we do? HOT 5
- Wrong comparison type in ASQuery.m generates a warning at compile time HOT 1
- Disjunctive Faceting HOT 3
- Query parameter: minimumAroundRadius HOT 7
- Query parameter: useQueryEqualsOneAttributeInRanking HOT 2
- Add a way to specify arbitrary query parameters HOT 1
- Error message improvements HOT 3
- deleteByQuery is missing HOT 2
- Disallow to change applicationID HOT 2
- Is there a swift library available? HOT 3
- aroundLatLong not public anymore how to reset location aware search?
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-client-objc.