Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 96006 invoked from network); 25 Jul 2005 14:41:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jul 2005 14:41:28 -0000 Received: (qmail 1515 invoked by uid 500); 25 Jul 2005 14:41:26 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 1494 invoked by uid 500); 25 Jul 2005 14:41:25 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 1481 invoked by uid 99); 25 Jul 2005 14:41:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2005 07:41:25 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.98.34] (HELO brmea-mail-3.sun.com) (192.18.98.34) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2005 07:41:18 -0700 Received: from phys-d3-ha21sca-1 ([129.145.155.163]) by brmea-mail-3.sun.com (8.12.10/8.12.9) with ESMTP id j6PEfNvU003031 for ; Mon, 25 Jul 2005 08:41:23 -0600 (MDT) Received: from conversion-daemon.ha21sca-mail1.sfbay.sun.com by ha21sca-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IK600B01TZKF4@ha21sca-mail1.sfbay.sun.com> (original mail from Richard.Hillegas@Sun.COM) for derby-user@db.apache.org; Mon, 25 Jul 2005 07:41:23 -0700 (PDT) Received: from [127.0.0.1] (vpn-129-150-26-229.SFBay.Sun.COM [129.150.26.229]) by ha21sca-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id <0IK600684U4XON@ha21sca-mail1.sfbay.sun.com> for derby-user@db.apache.org; Mon, 25 Jul 2005 07:41:23 -0700 (PDT) Date: Mon, 25 Jul 2005 07:41:18 -0700 From: Rick Hillegas Subject: Re: Full Text Indexing In-reply-to: <1cbd6f83050724134413667268@mail.gmail.com> To: Derby Discussion Message-id: <42E4FA0E.9010905@sun.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) References: <1cbd6f83050724134413667268@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Mag, Thanks for bringing up this issue. It certainly deserves an enhancement request. I'll log one later on today. Technically, you can build your own poor-man's solution to this problem today: 1) You can build your own inverted index (as a full-fledged table) on the text column you need to search. 2) You can maintain rows in that pseudo-index by hiding all insert/update/delete access (to the base table) inside some set of application-layer methods. 3) Similarly, you can manage searches by an application-layer query generator which knows how to build joins between the base table and the inverted index. A couple years ago I tried something like this with the free-license version of Cloudscape which IBM exposed. The performance disappointed me. I didn't look deeply into the performance issue. Instead, I tried another solution, which outperformed the inverted index: Full table scans on the base (text bearing) table supported by a search function evaluated, per query, on each text column. To date this hack has performed adequately on a dataset of 12K rows. However, it would be pretty slow on datasets an order of magnitude larger. So...we need to log an enhancment request for text search support. Regards, -Rick Mag Gam wrote: >Is it possible to have searchable data type with indexed access in >Cloudscape/Derby? > >I am looking for something similar to tsearch2 >(http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/) > >