Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

search engines

  • 04-07-2000 5:03pm
    #1
    Closed Accounts Posts: 2,256 ✭✭✭


    Anyone know how to make a search engine that works inside a website????

    When ya want it goes away too fast times ya hate it always seem to last secretdeathsquad.clanpages.com


Comments

  • Closed Accounts Posts: 202 ✭✭Karla


    If you want to build a homemade one you can write a little indexing script that creates a single file for a searching script to search through.

    The indexing script could trawl through each page keeping a count of each word, then it writes the word and the number of occurances of that word to a file. Something like this:

    @/wwwroot/foldername/index.html
    word1::24
    word2::18
    word3::3
    word4::25
    .
    .
    .
    @/wwwroot/foldername/sample.html
    word1::14
    .
    .
    etc.

    The @ part is just the url of the file that contains the words.

    All the search script has to do is open that index file and search that instead of searching every page. The index file only needs to be created everytime a new file is added to the site.

    You could also create a list at the top of the index or even in the script itself of files that you want the indexer to ignore. And also words like 'the' etc.

    Of course if you couldn't be bothered doing all that then take a look at Swish-E http://sunsite.berkeley.edu/SWISH-E/

    Karla



Advertisement