Search? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Search?

I should be able to type a prompt into a search bar and get results like on github.

9th Jan 2023, 6:21 PM
AW4
AW4 - avatar
4 Answers
+ 3
You can implement a simple autocomplete feature by using the datalist html tag... As long as the list is not too large. https://www.w3schools.com/tags/tag_datalist.asp
9th Jan 2023, 8:29 PM
Tibor Santa
Tibor Santa - avatar
+ 1
myme we can do this here: 1. To search codes from some user you go to they account and check its public codes 2. To select languages you can go to "create" section, here you have this "q&a discussion" and "code" section, select code and then in right side you have "All" click on it and switch to language you wish. To add term you have "magnifying glass" icon, when you click it you can type your search query on top
11th Jan 2023, 9:46 PM
PanicS
PanicS - avatar
0
Do you need to search github? Or you make some other website where you need to add search functionality? For adding search you should have some database or something similar where you look for searched term. It can be array for example. Simple and easiest search is to see does search term match values you have. For inteligent search you need more code and better algorithm, some tutorial will help you if you never build similar.
9th Jan 2023, 6:38 PM
PanicS
PanicS - avatar
0
I want the devs of sololearn to put a feature that allows users to find codes by langs and users on sololearn, like on github.
11th Jan 2023, 3:59 PM
AW4
AW4 - avatar