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

Add content wide search #175

Open
hkirat opened this issue Apr 11, 2024 · 13 comments · May be fixed by #300 or #440
Open

Add content wide search #175

hkirat opened this issue Apr 11, 2024 · 13 comments · May be fixed by #300 or #440

Comments

@hkirat
Copy link
Collaborator

hkirat commented Apr 11, 2024

Allow users to search deep inside the contents of the blogs

  1. Should use something like algolia/elastic search
  2. There should be a way to refresh it whenever the notion doc changes
@RaghavenderSingh
Copy link

@hkirat can you assign it to me

@sameet11
Copy link
Contributor

on it.

@saxenaaman17
Copy link

Looking into this.

@SujithThirumalaisamy
Copy link
Contributor

SujithThirumalaisamy commented Apr 12, 2024

Proposal of the approach:
Procedure:

  1. Add or Use a existing cache DB
  2. Create a function addSearchTokenToCacheDB ( Which creates seach tokens with the words inside the paths of the track and store it to Cache)
  3. Call it everytime admin creates a track
  4. Create a GET /search endpoint (Which returns a array of links which are inside the token with the key as x which is a superset of the search query)
  5. Might also need a Lambda kind of function initially propogates the cache db in the CI/CD workflow. ( Not sure about this )

image

Expecting this feature to be added with a deep discussion and implementation plan.

@nimit9
Copy link
Contributor

nimit9 commented Apr 12, 2024

Will it be able to search from the notion Doc?

@SujithThirumalaisamy
Copy link
Contributor

We should fetch the notion doc somehow and feed the data to the token generation and store it in the datastore or some kind of cache to be fast enough

@sameet11
Copy link
Contributor

sameet11 commented Apr 14, 2024

are we creating a Search functionality to search data from the whole track or to search data only from a single page of the track ?@hkirat @SujithThirumalaisamy

@SujithThirumalaisamy
Copy link
Contributor

Yes exactly, But I cannot proceed until we have access to the API. Ready with a elastic search local setup in my homelab server.

@ShubhamMewara
Copy link
Contributor

ShubhamMewara commented Apr 15, 2024

hey @hkirat
I have used algolia.com to search
Would you like to remove the previous search or want to keep it?

search.mp4

@D3vq
Copy link

D3vq commented Apr 16, 2024

hi @ShubhamMewara , did you added the deep search for the whole blog( notion doc as well)?

@ShubhamMewara
Copy link
Contributor

@D3vq yes i did

@D3vq
Copy link

D3vq commented Apr 16, 2024

@ShubhamMewara can we connect on discord, my username is mister0261 if you want to connect

@ShubhamMewara
Copy link
Contributor

@D3vq ok

@sameet11 sameet11 linked a pull request Apr 17, 2024 that will close this issue
2 tasks
@ShubhamMewara ShubhamMewara linked a pull request May 19, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
8 participants