question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

aroundRadius and aroundLatLngViaIP handled as string in urlSync

See original GitHub issue

Hi, I’ve custom widget in which I filter results by their location like so:

helper.setQueryParameter('aroundLatLngViaIP', true);
helper.setQueryParameter('aroundRadius', somevalue);

Search is working well and I can see these values send in HTTP requests to algolia.

Is there any particular reason to not have these values in URL when urlSync to enabled? Or is it just a bug?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
vvocommented, Jun 9, 2016

Hi @swistak35 this is not a bug per se but a lack in our documentation on how to track them.

Here’s how to do it:

var search = instantsearch({
  // ... other parameters
  urlSync: {
    trackedParameters: [
      'attribute:*', 'query', 'page', 'hitsPerPage',
      'aroundLatLngViaIP', 'aroundRadius'
    ]
  }
});

You could add more of them if needed. Seems right?

Thanks

0reactions
bobylitocommented, Nov 1, 2017

I’m making a new issue for this problem @gtovar333

Read more comments on GitHub >

github_iconTop Results From Across the Web

aroundLatLngViaIP API parameter - Algolia
Algolia automatically calculates the size of the circular radius around this central axis. To control the precise size of the radius, you would ......
Read more >
Top 5 algoliasearch-helper Code Examples - Snyk
To help you get started, we've selected a few algoliasearch-helper examples, based on popular ways it is used in public projects. Secure your...
Read more >
instantsearch.js - UNPKG
refinementList\n *\n * @typedef {string[]} SearchParameters. ... facets setter\n * Change the list of disjunctive (or) facets the helper chan handle.
Read more >
https://www.mzv.cz/public/48/2e/14/2753013_1890161...
querySelector(e):e,!o(n)){var r="Container must be `string` or ... aroundLatLngViaIP=t. ... filters] Can't switch from the advanced to the managed API.
Read more >
algoliasearch - Version 1.10.0
<span class="algolia-config-warning">⚠</span> All attributes used here must have been initially included in the Attributes configuration panel. 459.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found