Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 15021 invoked from network); 6 Sep 2005 01:08:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Sep 2005 01:08:52 -0000 Received: (qmail 65438 invoked by uid 500); 6 Sep 2005 01:08:39 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 65410 invoked by uid 500); 6 Sep 2005 01:08:38 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 65397 invoked by uid 99); 6 Sep 2005 01:08:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2005 18:08:38 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_30_40,HTML_MESSAGE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of bvchaosinc@gmail.com designates 64.233.184.196 as permitted sender) Received: from [64.233.184.196] (HELO wproxy.gmail.com) (64.233.184.196) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2005 18:08:51 -0700 Received: by wproxy.gmail.com with SMTP id i4so984858wra for ; Mon, 05 Sep 2005 18:08:36 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=I/cXwK32Aofva0qg/xpXBETJy0Uv8RUCCW98Sc+fr41V9F8aRFiZOsWHh0qP0GzOJWsxawzvntu+td5bsMh3gp2oyAjzM/MB5FRqfBEwx+D8xUAUU5sbZRAFX1C66ju27uR1Ho3daj/5u5mGlNcNquseLzKFODbd2vH8eBPuApQ= Received: by 10.54.128.20 with SMTP id a20mr3470451wrd; Mon, 05 Sep 2005 18:08:36 -0700 (PDT) Received: by 10.54.91.11 with HTTP; Mon, 5 Sep 2005 18:08:36 -0700 (PDT) Message-ID: <96ae002305090518086fb5f944@mail.gmail.com> Date: Mon, 5 Sep 2005 21:08:36 -0400 From: russell johnson To: dev@httpd.apache.org Subject: mod_mbox search code Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3628_1910531.1125968916220" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_3628_1910531.1125968916220 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello every one This is the first code release of the mod_mbox search SoC project. I used= =20 the mysql full test search feature as the backbone of this search feature= =20 for mod_mbox. To make an connection pool with mysql I used a combination of= =20 libdbi and mod_dbipool. Libdbi also provided functions to help protect from= =20 SQL injection attacks.=20 The UI for the search is non-existent right now I will be working with=20 Maxime Petazzoni soon to integrate my search into his new mod_mbox UI. Righ= t=20 now there is an apache handler in my code if you want to test the search. I= t=20 is not meant to be use in any other capacity and so is very inefficient and= =20 causes some problem with the rest of mod_mbox functions. There are a few=20 variables in mod_mbox_sreach.c to change for the search input and the outpu= t=20 goes straight to error_log.=20 =20 The field variable can be "subject", "body", "subject,body" depending on=20 what part/parts of the message you want to search.=20 The type variable can be "bool" or "notbool" depending on if you want a=20 natural language search or a Boolean search.=20 This article http://mysqld.active-venture.com/Fulltext_Search.html or the= =20 mysql manual explains the search types and syntax well.=20 The search_terms variable is where your search query goes as one big string= .=20 "I'm looking for this".=20 To make the table just set up an mysql database of any name and use the per= l=20 scripts in /home/russ/ in this tar file.=20 To make a new table and add all the .mbox files in a directory. ./make_fts_db To add a .mbox file to the table. ./update_fts_db A tarball of this code can be found here: http://www.clanbv.org/public/mod_mbox/=20 I am very open to critiques and comments so please let me know what you=20 think Russell ------=_Part_3628_1910531.1125968916220 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

Hello every one

 This is the first code release of the mod_mbox search SoC project.  I= used the mysql full test search feature as the backbone of this search feature for mod_mbox.  To make an= connection pool with mysql I used a combination of libdbi and mod_dbipool.  Libdbi also provided functions to help protect from SQL injection attacks.  

            = The UI for the search is non-existent right now I will be working with Maxime Petazzoni soon to integrate my search into his new mod_mbox UI.  Right now there is an apache handler in my code if you want to test = the search.  It is not meant to be use in any other capacity and so is very inefficient and causes some problem with the = rest of mod_mbox functions. There are a few variables in mod_mbox_sreach.c to ch= ange for the search input and the output goes straight to error_log. =

The field variable can be "subject", "body", "s= ubject,body" depending on what part/parts of the message you want to search. =

The type variable can be "bool" or "notbool" dependi= ng on if you want a natural language search or a Boolean search. <= br> This article http://mysqld.active-venture.com/Fulltext_Search.html or the mysql manual explains the search types and syntax well. 

The search_terms variable is where your search query goes as one big string. "I'm looking for this". 

To make the table just set up an mysql database of any name and use the perl scripts in /home/russ/ in this tar file.  

To make a new table and add all the .mbox files in a directory.
./make_fts_db <mysql database name> <mysql user> <mysql password> <path to .mbox files>

To add a .mbox file to the table.
./update_fts_db <mysql database name> <mysql user> <mysql password> <path to a .mbox file>

A tarball of this code can be found here:
http://www.clanbv.org/pu= blic/mod_mbox/ 

I am very open to critiques and comments so please let me know what you think

Russell ------=_Part_3628_1910531.1125968916220--