Comments (7)
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.
Superseded by #25.
from algoliasearch-client-objc.
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.
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.
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.
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.
@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)
- 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: useQueryEqualsOneAttributeInRanking HOT 2
- Add a way to specify arbitrary query parameters HOT 1
- searchDisjunctiveFaceting function unavailable in ObjC API version 3.5 HOT 4
- 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.