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.

Should urlSync allows attribute names mapping?

See original GitHub issue

With the URL mapping from #922, is it possible to map hierarchical facets to a different name?

For example, here is my configuration and the query string it generates:

Current:
mapping: {
    'q': 'query',
    'p': 'page',
    'hPP': 'hits',
    'hFR': 'filter',
},
?query=&page=0&filter[facets.facets.fits.make][0]=Ford&is_v=1
Desired:

Without changing the structure of the record inside my index, could I configure it so it’s like this?

?query=&page=0&filter[make][0]=Ford&is_v=1

Or, better yet:

?query=&page=0&make[0]=Ford&is_v=1

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:3
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
nicogominetcommented, Jan 14, 2018

@Haroenv sounds like what I’m looking for indeed. I guess a simpler configuration would’ve been appreciated (in the vein of the current urlSync), but I noticed that I’ll be able to update the title as well so that sounds exactly like what I need (by looking at this demo). This is the very last thing I need to do to fully replace our current (local) system by algolia’s 🎉

PS: unfortunately I wasn’t able to play with it as this PR is based of 2.3.3 which apparently is broken with my setup.

0reactions
Haroenvcommented, Jan 14, 2018

great news! feel free to leave a code snippet or fiddle so we can play around and figure out what broke your implementation too, or open a new issue for that

Read more comments on GitHub >

github_iconTop Results From Across the Web

How i can rename the attribute name in my URL - Open Q&A
i want to rename category.lvl0 to category in the URL Thank you!!!
Read more >
Features, Highlights and the Advanced Attribute Mapping
With UserSync 2.0, we made mapping IdP attributes easier and more powerful. We added built-in IdP specific transformation presets and common transformations can...
Read more >
10 Assembling Database Web Services - Oracle Help Center
A query or a PL/SQL function returning REF CURSOR will be mapped into three methods, name Beans , name XMLRowSet , and name...
Read more >
Sync Gleam Custom Fields With Email Providers
When you open the Custom Field Mapping modal we will check what fields exist, ... Viral Share URL: Sync the users Viral Share...
Read more >
instantsearch.js - UNPKG
Each facet must be properly\n * defined in the `facets` attribute.\n *\n * The key is the name of the facet, and the...
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