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.
How is a 'search' written (in code) to internally search a site?
Collapse
X
-
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
-
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
-
-
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 InfoTo 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
-
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
-

AIM: GrouchyGfy
Comment