htDig won't do just do it for you natively.  But I've done it.  And, believe
me, if I have, so can you.  You'll need to do two things.  First, create a
query script that can take the text from the database that you want to
search and format it into html.  Then, you'll need another script (or
section of script) that creates a link to the previous script for each
record in your database.  You can use PHP for this pretty easily.

Here's an instance of using htDig to search that brings back matches from
our regular html pages as well as a MySQL database (In Bloom at Monticello)
of plants here at Monticello:
http://www.monticello.org/cgi-bin/htsearch?config=htdig&restrict=&exclude=&m
ethod=and&format=builtin-long&sort=score&words=tesse&submit2=Search

For comparison, here's a version using MySQL's (3.x) fulltext capability to
search just plants database:
http://www.monticello.org/gardens/inbloom/search.html?search=tesse

If you need to see a script, I can send you one.

Chad Wollerton
Monticello Webmaster


--- Natalya Kolesnikova <[EMAIL PROTECTED]> wrote:
> Hello,
> can I search in the MySQL database (Fulltext Search)
> with htDig also???
> How can I implement it?


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
ht://Dig general mailing list: <[EMAIL PROTECTED]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to