Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

230
Views
Vanilla JS Algolia InstantSearch - Parsing array data in template

I have my data stored in an array of objects and I am successfully parsing the first two values in my template. As they are strings, it’s pretty straightforward -

{{#helpers.highlight}}{ "attribute": "traditional" }{{/helpers.highlight}}
{{#helpers.highlight}}{ "attribute": "pinyinDiacritic" }{{/helpers.highlight}}

I’m trying to do the same for an array of data that I have stored. I’ve tried using the same way as before ({ "attribute": "definitions" }) but no data gets returned.

This makes sense as it’s an array and not a string but how do you parse arrays in an instantsearch template?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I think you can write

{{#array}}{{value}}{{/array}}
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!