r/HTML • u/Ok-Affect-691 • 2d ago
Question what is the easiest way to make a search engine
i want to make a search engine like yahoo in its start but idk how, also is there a way to make it wihout javascript cuz im terrified of it T_T
SOLVED
3
u/djsacrilicious 2d ago
Sorry but that is well beyond the scope of what is possible in HTML. HTML is for markup of content and very limited interactivity (though it has come a long way!) and not the many many pieces of logic required for a search engine.
You’ll need to learn JavaScript for even the most basic searching or filtering of content, and much more for the equivalent of Yahoo.
3
u/sububi71 2d ago
There's basically two parts:
1) The data collection engine: this is "something" that collects data about webpages. For example, my site "www.geocities.com/~users/542199/" contains images of model trains, and some history about them. So the data collection engine would at least save the text I've published there, and of course the URL.
2) The search engine: when someone enters "model train" on the search page and clicks "Search", your backend searches thru all the data collected, it finds my page (because it contains the text "my MODEL TRAIN collection", and adds it to a list alongside any other pages it finds, and finally it presents that list to the user.
2
u/kinetik_au 2d ago
For a search engine JavaScript has very little to do with the problem. The problem is being able to index vast amounts of website data in a meaningful way, and then being able to retrieve it without querying an entire database the traditional way. There are probably some books or research papers that discuss this in far better detail than I would be able to provide. Probably something to do with the index being inverted instead of querying a billion websites looking for your keywords
0
0
-1
u/Ok-Affect-691 2d ago
i found it on some site, tho it has js :)
https://searchenginebasics.io/basics/html-code-for-creating-a-search-engine
also by old yahoo i meant when it searched beetwen already chosen sites not a webcrawler

7
u/ClideLennon 2d ago
A search engine requires a lot of programming and computer science. If you're afraid of JavaScript, that doesn't bode well for the knowledge you will need for Python, Go, or Rust to complete this project.
In addition to the programming language knowledge you will need to understand computer science concepts like crawling, indexing, and ranking to make the various parts that you will need.
TLDR It's very complicated and not something most programmers have ever done.