kinicdao / kinic

Search re-imagined for web3.
MIT License
3 stars 2 forks source link

Apply Okapi-BM25 Search as Alpha Test #4

Open ClankPan opened 1 year ago

ClankPan commented 1 year ago

In the kindb repository (which serves as the backend for Kinic), an update has been made to incorporate the Okapi-BM25 search algorithm. This particular task pertains to the addition of a new search page for alpha testing purposes. To implement this page, several modifications are required within the search.vue file. Below is the list of tasks to be completed. @wyattbenno777

To-Do List:

here is a sample about searching by okapi-bm25 https://github.com/kinicdao/kindb/blob/a47fbadc68ef768ee5175b5c674c6da96f6b288d/src/scripts/crawler/search.js#L19-L27

and here is fetching metadata https://github.com/kinicdao/kindb/blob/a47fbadc68ef768ee5175b5c674c6da96f6b288d/src/scripts/crawler/search.js#L33-L57

ClankPan commented 1 year ago

need to fetch metadata here in parallel

https://github.com/kinicdao/kinic/blob/db75af229a857b57daaee2ca95c3de4fa2e5f7ef/frontend/Search.vue#L1888-L1901

ClankPan commented 1 year ago

switch mode to alpha test by this function. https://github.com/kinicdao/kinic/blob/8e8cf4f380a14241a84448f8ba6c3e5969bc8d2c/frontend/Search.vue#L1766-L1768

ClankPan commented 1 year ago

ToDo

https://github.com/kinicdao/kinic/blob/13e100775dbdb7d5de2eac2c47dacea253e0d000/frontend/Search.vue#L2060-L2065