https://devby.io/news/flat-search