GithubHelp home page GithubHelp logo

Comments (7)

clement-leprovost avatar clement-leprovost commented on June 24, 2024

Already implemented in the v3 branch... of the Swift client. No plan to implement it in the Objective-C client so far, as the Swift client will be preferred as of v3.

from algoliasearch-client-objc.

clement-leprovost avatar clement-leprovost commented on June 24, 2024

Superseded by #25.

from algoliasearch-client-objc.

sharad1404 avatar sharad1404 commented on June 24, 2024

Our entire implementation is in obj-c. We have a need to set minimumAroundRadius, but we are stuck as we are not finding any docs to set this in obj-c. Can you please help guide us how to set this in obj-c.

from algoliasearch-client-objc.

redox avatar redox commented on June 24, 2024

Our entire implementation is in obj-c. We have a need to set minimumAroundRadius, but we are stuck as we are not finding any docs to set this in obj-c. Can you please help guide us how to set this in obj-c.

Hey @sharad1404,

you can still use the arbitrary query parameters available in our Objective-C API client:

ASQuery* query = [[ASQuery alloc] init];
[query set:@"minimumAroundRadius" value:@"100000"];

You may need to upgrade to the latest version however :)

from algoliasearch-client-objc.

sharad1404 avatar sharad1404 commented on June 24, 2024

Thanks Sylvain for the quick response. Will try this right away and let you
know if there are any questions.

thanks,
Sharad

On Tue, Jun 14, 2016 at 11:29 AM, Sylvain Utard [email protected]
wrote:

Our entire implementation is in obj-c. We have a need to set
minimumAroundRadius, but we are stuck as we are not finding any docs to set
this in obj-c. Can you please help guide us how to set this in obj-c.

Hey @sharad1404 https://github.com/sharad1404,

you can still use the arbitrary query parameters available in our
Objective-C API client:

ASQuery* query = [[ASQuery alloc] init];
[query set:@"minimumAroundRadius" value:@"100000"];

You may need to upgrade to the latest version however :)


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#23 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ATAzGvvgRYxwU44-df601nNwDVcOHD7Pks5qLvMegaJpZM4ICR9E
.

from algoliasearch-client-objc.

sharad1404 avatar sharad1404 commented on June 24, 2024

One follow-up question re: implementation.

We tried the arbitrary query parameters and it works fine.
However - once we set the value - it persists for all future queries. Is there a way to reset it back for queries.

from algoliasearch-client-objc.

clement-leprovost avatar clement-leprovost commented on June 24, 2024

@sharad1404 Sorry, I am not sure to understand what you mean by "it persists for all future queries". :/

The ASRemoteIndex class does not persist the query between searches. However, if you are re-using the same ASQuery instance between searches, indeed the values will persist, but that's intentional. If you don't want this to happen, just create a new instance every time. Alternatively, you can call -[ASQuery set:value:] with a nil value, which will remove the corresponding extra parameter. (I wouldn't recommend this approach, however. Treating queries as immutable after they are constructed is in my opinion less error-prone.)

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.