Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: create search engine in my site

  1. #1
    Join Date
    Jul 2008
    Posts
    81
    Thanks
    38
    Thanked 2 Times in 2 Posts

    Default create search engine in my site

    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.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    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.
    Jeremy | jfein.net

  3. The Following User Says Thank You to Nile For This Useful Post:

    lord22 (07-27-2008)

  4. #3
    Join Date
    Jul 2008
    Posts
    199
    Thanks
    6
    Thanked 58 Times in 57 Posts

  5. The Following User Says Thank You to techietim For This Useful Post:

    lord22 (07-27-2008)

  6. #4
    Join Date
    Jul 2008
    Posts
    81
    Thanks
    38
    Thanked 2 Times in 2 Posts

    Default

    Quote Originally Posted by techietim View Post
    Thank you I'll check this out.

    Quote Originally Posted by Nile View Post
    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.
    Thank you too. I don't want to use the google search in my site.
    I am a bit new in PHP, but I really want to learn how to make it by myself.
    Do you know any tutorial about this thing?

  7. #5
    Join Date
    Jul 2007
    Location
    Azerbaijan, Baku
    Posts
    144
    Thanks
    11
    Thanked 27 Times in 25 Posts

    Default

    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

  8. The Following User Says Thank You to allahverdi For This Useful Post:

    lord22 (07-27-2008)

  9. #6
    Join Date
    Jul 2008
    Posts
    81
    Thanks
    38
    Thanked 2 Times in 2 Posts

    Default

    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.

  10. #7
    Join Date
    Jul 2007
    Location
    Azerbaijan, Baku
    Posts
    144
    Thanks
    11
    Thanked 27 Times in 25 Posts

    Default

    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!

  11. #8
    Join Date
    Jul 2008
    Posts
    81
    Thanks
    38
    Thanked 2 Times in 2 Posts

    Default

    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.

  12. #9
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Quote Originally Posted by lord22 View Post
    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.
    Thats why its good to use my idea. File_get_contents.
    Jeremy | jfein.net

  13. #10
    Join Date
    Jul 2007
    Location
    Azerbaijan, Baku
    Posts
    144
    Thanks
    11
    Thanked 27 Times in 25 Posts

    Default

    lord22, sorry for late answer.
    But, Nile already posted what I wanted to post

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •