How is a 'search' written (in code) to internally search a site?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kard63
    Confirmed User
    • Nov 2003
    • 8944

    #1

    How is a 'search' written (in code) to internally search a site?

    How does one go about programing a search function for their site? I do not want it to rely on Google. I want it the hard way.
  • Bro Media - BANNED FOR LIFE
    MOBILE PORN: IMOBILEPORN
    • Jan 2004
    • 16502

    #2
    SELECT title FROM table WHERE title LIKE '%$_GET['q']%'

    ofcourse its dirty, you will want to do alot of shit to the $_GET to make sure its not a malicious get and other bullshit, but it'll help you

    using php/mysql by the way

    Comment

    • Kard63
      Confirmed User
      • Nov 2003
      • 8944

      #3
      Originally posted by Retox Josh
      SELECT title FROM table WHERE title LIKE '%$_GET['q']%'

      ofcourse its dirty, you will want to do alot of shit to the $_GET to make sure its not a malicious get and other bullshit, but it'll help you

      using php/mysql by the way
      Thanks! I'll investigate this further.

      Comment

      • Headless
        Registered User
        • Jan 2001
        • 26727

        #4
        format c:\

        Comment

        • psili
          Confirmed User
          • Apr 2003
          • 5526

          #5
          Originally posted by Retox Josh
          SELECT title FROM table WHERE title LIKE '%$_GET['q']%'

          ofcourse its dirty, you will want to do alot of shit to the $_GET to make sure its not a malicious get and other bullshit, but it'll help you

          using php/mysql by the way
          Take note about what RJ said about sanitizing input, or you'll end up like Bobby Table's school:

          Your post count means nothing.

          Comment

          • HomeFry
            Confirmed User
            • Jun 2006
            • 1062

            #6
            A: Write some code.
            B: ?????
            C: Profit!
            Need Mushrooms Designed? Gimme-Website

            Comment

            • MattO
              The O is for Oohhh
              • Feb 2003
              • 10861

              #7
              I use Verity search on my sites. You can get it with ColdFusion. It'll index text on your site or a database, shit like that.

              You can use it to create a "collection" that then you use CFSearch with and it spits out results.

              Originally posted by Verity Info
              To efficiently search through paragraphs of text or files of varying types, you need full-text search capabilities. ColdFusion includes the Verity search engine, which provides full-text indexing and searching.

              The Verity engine performs searches against collections, not against the actual documents. A collection is a special database created by Verity that contains metadata that describes the documents that you have indexed. The indexing process examines documents of various types in a collection and creates a metadata description--the index--which is specialized for rapid search and retrieval operations.

              The ColdFusion implementation of Verity supports collections of the following basic data types:

              * Text files such as HTML pages and CFML pages
              * Binary documents (see Supported file types)
              * Record sets returned from cfquery, cfldap, and cfpop queries

              You can build collections from individual documents or from an entire directory tree. Collections can be stored anywhere, so you have much flexibility in accessing indexed data.

              In your ColdFusion application, you can search multiple collections, each of which can focus on a specific group of documents or queries, according to subject, document type, location, or any other logical grouping. Because you can perform searches against multiple collections, you have substantial flexibility in designing your search interface.

              Comment

              • directfiesta
                Too lazy to set a custom title
                • Oct 2002
                • 30149

                #8
                A lot of scripts are available ... ( Hotscripts )

                such as:http://www.site-search-pro.com/ ( a few $$$ required )
                I know that Asspimple is stoopid ... As he says, it is a FACT !

                But I can't figure out how he can breathe or type , at the same time ....

                Comment

                • GrouchyAdmin
                  Now choke yourself!
                  • Apr 2006
                  • 12085

                  #9
                  Oy vey. 678

                  Comment

                  Working...