website search


Page 1 of 2 12 LastLast
Results 1 to 15 of 18

Thread: website search

  1. #1
    Join Date
    Mar 2004
    Location
    Gatineau Quebec
    Posts
    823

    website search

    Hi guys, I was wondering if someone could point me in the right direction...
    I have the task ahead of me of setting up a search engine that can be used by the employees of our company to search the content of our site.
    The site is sort of medium-sized, but it's getting to the point I need to add something to it so that our users can find info on it.
    any suggestions are welcome.
    thanks
    Linux user #367409

  2. #2
    Join Date
    Sep 2002
    Location
    Harlow, UK
    Posts
    1,788
    Hey,

    Could you give us any more info about your companys site? I would guess the content is grabbed from a DB of some sort?

    If you haven't got the time / resources to knock something together inhouse, a quick Google brought back these:

    http://www.sphider.eu/
    http://risearch.org/eng/risearch_php/index.html
    If you have to ask why you want to install Linux, then perhaps you shouldn't.
    -- Michael D. Watts (Gone but never forgotten)

    Linux is not Windows | Posting Guidelines

    Code Monkey (YouTube)

  3. #3
    Join Date
    Sep 1999
    Posts
    3,202
    You can create a custom google search box that defines searching only in your domain...

    Of course, that means that google has to spider your domain...

  4. #4
    Join Date
    Sep 2002
    Location
    Harlow, UK
    Posts
    1,788
    I was under the impression that it was a intranet site...if not the custom Google search would probably be the easiest
    If you have to ask why you want to install Linux, then perhaps you shouldn't.
    -- Michael D. Watts (Gone but never forgotten)

    Linux is not Windows | Posting Guidelines

    Code Monkey (YouTube)

  5. #5
    Join Date
    Mar 2004
    Location
    Gatineau Quebec
    Posts
    823
    You're absolutely right, it's strictly intranet; it would be impossible for Google to spider it, so a Google search engine is out of the question.
    The server itself runs on ubuntu (but we're soon changing it to Debian stable)
    and it's a simple site with just content, all done in html and php. There is no db functionality at this time, I haven't implemented mysql to do anything ... yet.
    I've just started looking at this ... can any of you make a recomendation?
    Linux user #367409

  6. #6
    Join Date
    Jul 2002
    Location
    Vladivostok, Russia
    Posts
    9,053
    Grep for Windows comes to my mind....HERE
    Last edited by JohnT; 09-21-2009 at 04:47 PM.
    "I was pulled over for speeding today. The officer said, "Don't you know
    the speed limit is 55 miles an hour?" And I said, "Yes, but I wasn't going
    to be out that long."

    How To Ask Questions The Smart Way
    COME VISIT ME IN RUSSIA NOW!!

  7. #7
    Join Date
    Mar 2004
    Location
    Gatineau Quebec
    Posts
    823
    JohnT, you always tell me to do things the hard way! :P
    Linux user #367409

  8. #8
    Join Date
    Sep 1999
    Posts
    3,202
    OK, if it is plain text stuff (html, php, txt, etc) then SimpleSearch may do it for you. Intensive, 'cause it basically runs a recursive grep, but it works.

    You could also write your own - I did one years ago for the archive of an email listserv I created, worked well.

  9. #9
    Join Date
    Jul 2002
    Location
    Vladivostok, Russia
    Posts
    9,053
    Quote Originally Posted by infiniphunk View Post
    JohnT, you always tell me to do things the hard way! :P
    I reverse engineer everything
    "I was pulled over for speeding today. The officer said, "Don't you know
    the speed limit is 55 miles an hour?" And I said, "Yes, but I wasn't going
    to be out that long."

    How To Ask Questions The Smart Way
    COME VISIT ME IN RUSSIA NOW!!

  10. #10
    Join Date
    Mar 2004
    Location
    Gatineau Quebec
    Posts
    823
    rats!@

    just tried Simple search and after setting it up i get:

    error 405

    "Method Not Allowed
    The requested method POST is not allowed for the URL /search/search.pl."

    this I am just testing on my server at home which is openbsd ... I wonder if it's this confounded chrooted apache business. or something else I have to change in /var/www/conf/httpd.conf ?
    Linux user #367409

  11. #11
    Join Date
    Jul 2002
    Location
    Vladivostok, Russia
    Posts
    9,053
    This should keep you busy for awhile
    http://www.searchtools.com/

    If not here are several thousand to choose from....have fun.
    http://sourceforge.net/search/?type_...earch+intranet
    Last edited by JohnT; 09-23-2009 at 04:57 AM.
    "I was pulled over for speeding today. The officer said, "Don't you know
    the speed limit is 55 miles an hour?" And I said, "Yes, but I wasn't going
    to be out that long."

    How To Ask Questions The Smart Way
    COME VISIT ME IN RUSSIA NOW!!

  12. #12
    Join Date
    Mar 2004
    Location
    Gatineau Quebec
    Posts
    823
    yeah I checked out that site before already and it kinda scared the **** outta me.
    Anyway I think I'm going to keep trying a bit more with SimpleSearch, hopefully getting it going on debian will be easier.
    Thanks for the suggestion
    Linux user #367409

  13. #13
    Join Date
    Mar 2004
    Location
    Gatineau Quebec
    Posts
    823
    ok so I've set up SimpleSearch now on Debian (Lenny) and I'm finding I still have the same problem. I've changed search.html so that
    Code:
    <form method="POST" action="search.pl">
    because the search.pl file is in the same directory as the search.html file.

    I've edited search.ph so that the define variables are like so:
    Code:
    $basedir = '/var/www/sites/mysite/';
    $baseurl = 'http://www.mysite.com/';
    @files = ('*.html');
    $title = "Matt's Script Archive";
    $title_url = 'http://www.mysite.com/';
    $search_url = 'http://www.mysite.com/search/search.html';
    problem now is if I go to do a search with it, rather than running the search.pl script, the firefox download dialogue box opens asking me if I want to run search.pl with Geany or do I want to save it.

    Help???
    Last edited by infiniphunk; 10-05-2009 at 11:54 AM.
    Linux user #367409

  14. #14
    Join Date
    Sep 2002
    Location
    Harlow, UK
    Posts
    1,788
    Hi infiniphunk

    I'd expect to see the form defined similar to this:
    Code:
    <form method="post" action="/cgi-bin/search.pl">
    I'd suggest on reading how to enable CGI on Apache, a couple of links that might shed some light for you:

    http://ubuntuforums.org/showthread.php?t=422412
    http://bignosebird.com/apache/a3.shtml
    http://nixcraft.com/linux-software/3...-location.html
    If you have to ask why you want to install Linux, then perhaps you shouldn't.
    -- Michael D. Watts (Gone but never forgotten)

    Linux is not Windows | Posting Guidelines

    Code Monkey (YouTube)

  15. #15
    Join Date
    Mar 2004
    Location
    Gatineau Quebec
    Posts
    823
    thanks a lot, going to try it!
    Linux user #367409

Posting Permissions

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