Results 1 to 4 of 4

Thread: Search Script

  1. #1
    Join Date
    Jun 2005
    Location
    Canada
    Posts
    68
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default Search Script

    I am in need of some type of site search script that enables visitors to search a singular large domain rather than use the Google engine which may prematurely take potential customers away.
    Any guidance would be appreciated.

    D

  2. #2
    Join Date
    Nov 2006
    Location
    Northeast USA
    Posts
    408
    Thanks
    8
    Thanked 30 Times in 28 Posts

    Default

    I just did a search and this post came up (2 monther later )
    You can still use google just put "site:yourdomain" before the acutal query, that way no other sites show up. If you want to host a search, then try this:
    http://www.javascriptkit.com/script/...se/index.shtml

    -Ben -- THE DYNAMIC DRIVERS
    My Links: My DD Profile||My Youtube Video Tutorials||DD Helping Coders||DD Coders In Training
    I told my client to press F5, the client pressed F, then 5, *facepalm*

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    There are three ways to go about this:

    1. Use google (or another prebuilt script). I recommend this. Much easier, and it'll work well.

    2. Create a pseudo search script, that refers to data you create. In other words, you can create a database and type in a few keywords for each page, then have the visitor search and if any keywords match you can return that page as a result. This isn't truly "searching" anything, but just sorta cross-referencing. It's a bit of work to setup, and hard to maintain (having to manually enter keywords-- or perhaps you could make a keyword generator from a page), but it can work out ok.

    3. Actually search every page. This is tough. Maybe if you have a database driven site you could search it through the database itself, but if you are actually searching through every page on the site it will just be very slow. Perhaps looking at what google does, that is crawling through every page fairly often to determine keywords-- basically an automated version of (2)-- would work, but it's still difficult.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  4. #4
    Join Date
    Jun 2005
    Location
    Canada
    Posts
    68
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default

    Gee, I forgot all about that one! It was a bit ago wasn't it! LOL No worries. Actually those are both excellent ideas. I am transitioning all of my sites from FrontPage to PHP and Mysql database so I will be able to incorporate them.

    Thank you both.
    D

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
  •