472,782 Members | 1,538 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,782 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 1806

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: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.