473,394 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to create fulltext indexes in MySQL 3.23.58?

Retracing my problem leads me to believe I never successfully created
fulltext indexes for MySQL 3.23.58 MyISAM tables. I went to the MySQL
manual and was able - or so I thought - to create them, however, my
fulltext search queries fail in 3.23.58 but the exact queries (with
same data) work perfectly in 4.0.10.

Expand|Select|Wrap|Line Numbers
  1. -- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
  2. --    File: INDEXES.SQL
  3. --    Created: 6/29/2004
  4. --    Modified: 6/29/2004
  5. --    Purpose: Create IVC table indexes
  6. --    Dependencies: MySQL 3.23+ Database
  7. --    Privacy Scope: SQL file.  Be sure to render lockdown on /sql folder
  8. to prevent viewing/downloading of this script
  9. -- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
  10.  
  11. ALTER TABLE image ADD INDEX ix_image_path (image_path);
  12. ALTER TABLE image ADD FULLTEXT ix_search (image_name, image_alt,
  13. image_location_city, image_location_state, image_location_country);
  14.  
  15. ALTER TABLE album ADD INDEX ix_album_name (album_name);
  16.  
  17. ALTER TABLE department ADD INDEX ix_department_name (department_name);
  18. ALTER TABLE department ADD INDEX ix_department_parent_id
  19. (department_parent_id);
  20.  
  21. ALTER TABLE person ADD INDEX ix_department_id (department_id);
  22. ALTER TABLE person ADD FULLTEXT ix_search (first_name, last_name);
  23.  
  24. ALTER TABLE keyword ADD FULLTEXT ix_search (keyword_name);
  25.  
  26. ALTER TABLE event ADD FULLTEXT ix_search (event_name);
  27.  
  28. ALTER TABLE placement ADD FULLTEXT ix_search (placement_name);
  29.  
This results in what I thought would be fulltext indexes for each
table called "ix_search" but what it creates are indexes with COMMENTS
of "fulltext", not INDEX_TYPE of "FULLTEXT".

Could someone show me how to do this right for 3.23.58?

Thanx
Phil
Jul 20 '05 #1
0 1845

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Phil Powell | last post by:
Relevancy scores are normally defined by a MySQL query on a table that has a fulltext index. The rules for relevancy scoring will exclude certain words due to their being too short (minimum...
0
by: Phil Powell | last post by:
The table already has a fulltext index and from there I can use the MySQL fulltext search query to get results as well as the relevancy score. The problem I have is that MySQL has a default...
0
by: Henry Hank | last post by:
Environment: I'm setting up a database server on a Dell Poweredge 2650, dual 1.8GHZ pentium with 1GB of memory and RAID5 drives. I've installed RedHat 9, and updated the kernel to 2.4.20-19.9smp....
0
by: Chris Nolan | last post by:
Hi all, I was wondering, does anyone know if there are any plans to add FULLTEXT indexes to the almighty InnoDB such that it catches up with the funky MyISAM in terms of things you can pass to...
0
by: Pete | last post by:
Hi, I'm building a new database and I will need a search engine for it. I wonder if it would be ok if the database contains two fulltext indexes. It's because my database will contain...
0
by: Phil Powell | last post by:
Retracing my problem leads me to believe I never successfully created fulltext indexes for MySQL 3.23.58 MyISAM tables. I went to the MySQL manual and was able - or so I thought - to create them,...
0
by: Robert Oschler | last post by:
I read a while back that MySQL will only use one index per query. (If this is not so, please tell me and point me to a doc that gives a good explanation of MySQL's current index usage policy). ...
1
by: Robert Oschler | last post by:
I read a while back that MySQL will only use one index per query. (If this is not so, please tell me and point me to a doc that gives a good explanation of MySQL's current index usage policy). ...
0
by: Roger Felstree | last post by:
Hi, I'm using MySQL v5.0 and we currently have a database containing several tables with Full Text indexes. Some of these tables contain ~800,000 records of >500Kb text. While the majority of...
0
by: AQSAPFI | last post by:
Hi, I have a problem restoring a Read-Only filegroup in a database. I've restored the Read/Write filegroups first without any problem. Then, I am able to recover Read-Only filegroups which do...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.