Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C29DE9FB697 for ; Mon, 26 Feb 2007 12:41:21 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 33729-04 for ; Mon, 26 Feb 2007 12:41:18 -0400 (AST) X-Greylist: delayed 00:10:45.078418 by SQLgrey-1.7.4 Received: from mail.alteeve.com (unknown [192.139.81.120]) by postgresql.org (Postfix) with ESMTP id 7EA669FB5A4 for ; Mon, 26 Feb 2007 12:41:17 -0400 (AST) Received: from [192.168.1.99] ([192.168.1.1]) by mail.alteeve.com (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id l1QGTnjQ002935 for ; Mon, 26 Feb 2007 11:29:50 -0500 Message-ID: <45E30ADA.2050700@alteeve.com> Date: Mon, 26 Feb 2007 11:29:14 -0500 From: Madison Kelly User-Agent: Icedove 1.5.0.9 (X11/20061220) MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Writting a "search engine" for a pgsql DB Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.136 tagged_above=0 required=5 tests=BAYES_50, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200702/295 X-Sequence-Number: 23349 Hi all, I am asking in this list because, at the end of the day, this is a performance question. I am looking at writing a search engine of sorts for my database. I have only ever written very simple search engines before which amounted to not much more that the query string being used with ILIKE on a pile of columns. This was pretty rudimentary and didn't offer anything like relevance sorting and such (I'd sort by result name, age or whatnot). So I am hoping some of you guys and gals might be able to point me towards some resources or offer some tips or gotcha's before I get started on this. I'd really like to come up with a more intelligent search engine that doesn't take two minutes to return results. :) I know, in the end good indexes and underlying hardware will be important, but a sane as possible query structure helps to start with. Thanks all!! Madison