Skip to content

Vue Js ais-numeric-menu count #4822

Answered by Haroenv
britisharmy asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately numbers are infinite, so we can't actually show a count of all the buckets. The workaround is making sure the ranges are available ahead of time. You can do that by making your record something like this:

[
{
  "range": "5 - 10"
},
{
  "range": "10 - 15"
}
]

If you make that range attribute an attributeForFaceting, you can use menu or refinement-list for refining with a count available.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@britisharmy
Comment options

@Haroenv
Comment options

@britisharmy
Comment options

@Haroenv
Comment options

@britisharmy
Comment options

Answer selected by britisharmy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Library: InstantSearch.js Issues in instantsearch.js
2 participants