Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / July 2007

Tip: Looking for answers? Try searching our database.

String Searching in SQL?

Thread view: 
Roedy Green - 05 Jul 2007 23:58 GMT
Consider if you had a set of documents basically text in a database.,
e.g. a website, or the SET of RFCs, or the JavaDoc for the JDK.  You
wanted a way of searching the text using features similar to what a
search engine offers, but you don't just want a stand alone search
engine. You want this integrated with other database processing.

Do any of the SQL database now offer features to efficiently implement
this?  Or it is up to you to extract words, prune common words,  build
and maintain voluminous indexes...
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
EricF - 06 Jul 2007 04:18 GMT
>Consider if you had a set of documents basically text in a database.,
>e.g. a website, or the SET of RFCs, or the JavaDoc for the JDK.  You
[quoted text clipped - 5 lines]
>this?  Or it is up to you to extract words, prune common words,  build
>and maintain voluminous indexes...

I haven't tried it but there's a text search engine for Postgres.

http://openfts.sourceforge.net/
http://www.devx.com/opensource/Article/21674

Eric
Hosam Aly - 06 Jul 2007 08:07 GMT
On Jul 6, 1:58 am, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:
> Consider if you had a set of documents basically text in a database.,
> e.g. a website, or the SET of RFCs, or the JavaDoc for the JDK.  You
[quoted text clipped - 8 lines]
> Roedy Green Canadian Mind Products
> The Java Glossaryhttp://mindprod.com

Oracle Text may be of help to you. You can get an overview about it
from the following websites:
Oracle Text Product Homepage: http://www.oracle.com/technology/products/text/index.html
Oracle Technology Network Article: http://www.oracle.com/technology/pub/articles/asplund-textsearch.html
David Harper - 06 Jul 2007 21:27 GMT
> Consider if you had a set of documents basically text in a database.,
> e.g. a website, or the SET of RFCs, or the JavaDoc for the JDK.  You
[quoted text clipped - 5 lines]
> this?  Or it is up to you to extract words, prune common words,  build
> and maintain voluminous indexes...

MySQL offers server-side full-text indexing and searching.

Simply declare an index of type FULLTEXT on the TEXT/CHAR/VARCHAR table
column(s) which contains the text you want to search, then query the
table using the "MATCH() ... AGAINST" syntax.

Here's the manual section which describes this facility.  It has
examples too.

http://dev.mysql.com/doc/refman/5.0/en/fulltext-search.html

David Harper
Cambridge, England
Arne Vajhøj - 07 Jul 2007 00:38 GMT
> Consider if you had a set of documents basically text in a database.,
> e.g. a website, or the SET of RFCs, or the JavaDoc for the JDK.  You
[quoted text clipped - 5 lines]
> this?  Or it is up to you to extract words, prune common words,  build
> and maintain voluminous indexes...

Most databases has such a feature. A common name for it
is "full text search".

Arne
Lew - 07 Jul 2007 15:25 GMT
>> Consider if you had a set of documents basically text in a database.,
>> e.g. a website, or the SET of RFCs, or the JavaDoc for the JDK.  You
[quoted text clipped - 8 lines]
> Most databases has such a feature. A common name for it
> is "full text search".

In addition to the other products mentioned, PostgreSQL supports full text search.

Signature

Lew



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.