Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAB: Search #683

Open
chrisvire opened this issue Sep 13, 2024 · 1 comment
Open

DAB: Search #683

chrisvire opened this issue Sep 13, 2024 · 1 comment

Comments

@chrisvire
Copy link
Member

chrisvire commented Sep 13, 2024

The search feature uses the search_words table in the data.sqlite database. There are columns for when searching with or without accents. There is a column for locations which has the id from the entries table with a weight following the index. The search results should be sorted by weight.

Here is an example:

word word_no_accents locations
don't don't 1330(20) 1644(20) 2743(20) 2753(20) 2810(50) 2967(20) 3089(50) 3140(20) 3149(20)

It should be done in a service worker so that it doesn't affect the performance of the display. There was significant work done for Scripture search. This DAB PWA should use the same type of techniques for good performance and responsiveness to the UI.

The Search UI has check boxes for "Match whole words" and "Match accents and tones". For the later, you should search the word column if checked and word_no_accents if not checked.

@chrisvire chrisvire converted this from a draft issue Sep 13, 2024
@chrisvire
Copy link
Member Author

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant