Bluehost.com Web Hosting $6.95

Searching BLOB fields

This is a discussion on Searching BLOB fields within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi, I was wondering if it is possible to search blob fields in MySQL. I have a MySQL DB and ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-20-2007
Jack
 
Posts: n/a
Default Searching BLOB fields

Hi,
I was wondering if it is possible to search blob fields in MySQL. I
have a MySQL DB and i am using PHP. I am storing Microsoft word files
in it. I am wondering if it is possible to somehow search through the
content of these words files.

Thanks

J

Reply With Quote
  #2 (permalink)  
Old 07-20-2007
Michael Fesser
 
Posts: n/a
Default Re: Searching BLOB fields

..oO(Jack)

>I was wondering if it is possible to search blob fields in MySQL.


Yes, if they contain plain text.

>I
>have a MySQL DB and i am using PHP. I am storing Microsoft word files
>in it.


Why in the DB and not as plain files?

>I am wondering if it is possible to somehow search through the
>content of these words files.


Not with MySQL, since a .doc is usually a binary.

Micha
Reply With Quote
  #3 (permalink)  
Old 07-21-2007
C.
 
Posts: n/a
Default Re: Searching BLOB fields

On 20 Jul, 03:31, Jack <accpac...@hotmail.com> wrote:
> Hi,
> I was wondering if it is possible to search blob fields in MySQL. I
> have a MySQL DB and i am using PHP. I am storing Microsoft word files
> in it. I am wondering if it is possible to somehow search through the
> content of these words files.
>
> Thanks
>
> J



Of course its possible. You just need to read the file from the
database, open the OLE package, extract the right data stream,
linearize it, strip the formatting parse out the words, create links
in the search dictionary for words not in the exclusion list and Bob's
your uncle.

Oh....you meant is it *practical*.....no

Keep them on the filesystem and use mnogo search using wv for an input
filter.

Better yet use OpenOffice.

C.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:37 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0