SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict trigger's Avatar
    Join Date
    Jun 2003
    Location
    Eagan
    Posts
    342
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Full text indexing in MYSQL table

    ALTER TABLE `tickets` ADD FULLTEXT FULLTEXT (problemWith,issue,fix)

    This code isn't working. I want to build a FULLTEXT index in my table called "tickets" and look through 'problemWith', 'issue', and 'fix' fields for search functionality. I get a MYSQL error. This table is already created, so I'm just trying to add this index now, which is why I used the ALTER TABLE command. All 'problemWith' is a varchar field, while, 'issue' and 'fix' are text fields. Any ideas of what I've done wrong?

  2. #2
    SitePoint Enthusiast
    Join Date
    Oct 2002
    Location
    Toronto, ON
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you have two "FULLTEXT"s...
    try

    ALTER TABLE `tickets` ADD FULLTEXT (problemWith,issue,fix)

  3. #3
    SitePoint Addict trigger's Avatar
    Join Date
    Jun 2003
    Location
    Eagan
    Posts
    342
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, I figured it out. I was using MySQL-Front, which prompts you for a name when you create an index, but you need to keep it blank I guess. Thanks.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •