Hi
Is it possible to create a search engine in my site, without using Database?
I want to learn about search methods.
If you know any tutorial or have some code for me I'll appreciate it. :)
Printable View
Hi
Is it possible to create a search engine in my site, without using Database?
I want to learn about search methods.
If you know any tutorial or have some code for me I'll appreciate it. :)
You can use google, http://www.google.com/sitesearch/#ut...tm_campaign=en.
Witch does cost money. There are a few other ways. But indeed very hard.
Below is assuming your using PHP for your search, and you've got a basic knowledge of file_get_contents.
You'd get every single file on your website with file_get_contents, and for every word the user typed in the search file_get_contents does * the amount. Then finds the words, then gets the pages that have the words, and then output them back.
First of all, look at this: www.php-mysql-tutorial.com
Start here. I think this site is awesome for starters. Then for functions you can www.php.net . I think you will find good things here too :)
I hope my post will help you :)
thank you G, but I've already been in those sites. I just don't have a clue where to start looking for what I need. I know ASP, JAVA and other stuff, so it's not that I'm new in programming. I also edited many PHP files, but steel I don't know what should I look for, which functions can help me etc.
I think there are few ways to make a search engine.
But all it depends what wngine you want.
For example if you have all information in your db, you can easily search it with mysql and other.
But also you can have others situations. Like to search in files.
If you want to find which function you need to use:
1. you can post here
2. you can search. you know, Google is our friend!
thanks
I'm looking for a search engine that can search in a site, which is not based on DB.
Another problem for me is that sometimes, the owner of the site can add pages, and the search engine should recognize them.
lord22, sorry for late answer.
But, Nile already posted what I wanted to post :)