bkhpanigha / hh-suttas

HH Suttas (Development)
https://hh-suttas.onrender.com/
9 stars 7 forks source link

Search functionality with Pali titles #64

Closed ghost closed 6 months ago

ghost commented 7 months ago

add the pali title keywords in the search keys. Circa

let fuseOptions = {
  includeScore: true,
  keys: ['id', 'title'], // Id then title in terms of priority
};
Reptilioo commented 6 months ago

I could do it if you want, just need to add a field 'pali_title' in available_suttas.json, fill the fields and fetch them adding 'pali_title' key in fuseOptions.keys and ensure that the search for pali words also works if the user doesn't use pali accents, right?

Edit: and modify sutta_catalog_manager.py so as to add the pali titles in available_suttas.json

ghost commented 6 months ago

@Reptilioo just saw your PR regarding this. I'll put my comments in the PR