GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   How is a 'search' written (in code) to internally search a site? (https://gfy.com/showthread.php?t=857496)

Kard63 09-25-2008 07:16 PM

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 09-25-2008 07:18 PM

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

Kard63 09-25-2008 07:36 PM

Quote:

Originally Posted by Retox Josh (Post 14809853)
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.

dropped9 09-25-2008 07:36 PM

format c:\

psili 09-25-2008 08:02 PM

Quote:

Originally Posted by Retox Josh (Post 14809853)
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:

http://imgs.xkcd.com/comics/exploits_of_a_mom.png

HomeFry 09-25-2008 08:06 PM

A: Write some code.
B: ?????
C: Profit!

MattO 09-25-2008 08:10 PM

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.

Quote:

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.


directfiesta 09-25-2008 08:45 PM

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

such as:http://www.site-search-pro.com/ ( a few $$$ required )

GrouchyAdmin 09-25-2008 09:45 PM

Oy vey. 678


All times are GMT -7. The time now is 11:32 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123