dbTalk Databases Forums  

indexed full text search

comp.databases.theory comp.databases.theory


Discuss indexed full text search in the comp.databases.theory forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Christian Hanser
 
Posts: n/a

Default indexed full text search - 09-17-2003 , 06:25 AM






Hi,

for my content management system I have to realize an indexed full text
search to search through articles. The sql-code must be generic, so that
my cms works indepently of the used sql-server.
Due to my lack of information on standard compliance of various
sql-severs, I would have to implement a workaround(which would'nt be
that fast).
I've already searched several times for documents on sql-standards on
the internet, but I didn't find anything.

Here's the mysql-syntax to perform a full text search:

creating table with FULLTEXT-indexes:
CREATE TABLE articles (
-> id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
-> title VARCHAR(200),
-> body TEXT,
-> FULLTEXT (title,body)
-> );

search-query (after some insert statemendt:
SELECT * FROM articles WHERE MATCH (title,body)
-> AGAINST ('test' IN BOOLEAN MODE);


Does anybody know if this (my)sql-statement is working with other
db-servers respectively is standard compliant?
If not - how does the standard compliant syntax look like?

thx
chris


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.