To rank the parent book highter

11

Hello, i have this problem i don’t understand why, it says " Syntax Error". the code source : https://www.algolia.com/doc/guides/indexing/structuring-your-data/#indexing-relations Can you help me ?

Thank you.

Yes the snippet should be

[
  {
    "book_name": "Harry Potter and the Philosopher's Stone",
    "popularity": 1000
  },
  {
    "book_of": "Harry Potter and the Philosopher's Stone",
    "chapter_name": "The Boy Who Lived",
    "popularity": 900
  },
  {
    "book_of": "Harry Potter and the Philosopher's Stone",
    "chapter_name": "The Vanishing Glass",
    "popularity": 800
  }
]

We’ll update the doc

1 Like