Let's say I have a book presented like this:
{ title: "Tis no book" chapter: 1, text: "Hello world this is a book chapter", subchapters: [ { chapter: 1.1 text: "Nested sub chapter" subchapters: [ chapter: 1.1.1 text: "Nested nested..." subchapters: [ ...etc...] }, { chapter: 1.2 text: "Nested sub chapter 2" subchapters: [ ...etc...] } ] }
Can I use 9.4 new jsonb / gin postgres (or something else) to set up a full text index in the "text" field of this recursively nested data structure so that I can search for a library of books stored in the database by text (using index)?
postgresql recursion
gremwell
source share