GithubHelp home page GithubHelp logo

Comments (4)

clement-leprovost avatar clement-leprovost commented on July 22, 2024

@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.

SyedIsmailAhamed avatar SyedIsmailAhamed commented on July 22, 2024

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.

SyedIsmailAhamed avatar SyedIsmailAhamed commented on July 22, 2024

/// 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.

clement-leprovost avatar clement-leprovost commented on July 22, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.