Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6066193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:28:28+00:00 2026-05-23T09:28:28+00:00

I need to do full text indexing for two different colums in two different

  • 0

I need to do full text indexing for two different colums in two different tables.

The only problem is that I’m using innodb and there is no way for me to do full text indexing.

I know that there are options such as sphinx and I took a look at the options, but I feel like it’s a overkill because the colums to be full-text indexed are varchar(20).

And, probably, there will be only around 1,000,000 rows “at most”

One simple option I’m thinkin is to duplicate the two tables only with the primary key and the varchar to be indexed using myisam.

any suggestion? is there any way to achieve this easily?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:28:29+00:00Added an answer on May 23, 2026 at 9:28 am

    Your approach seems correct.

    • create a new table with only the fields of interest (the pkey(s) and the varchar(s) of interest), engine myisam.

    • create a full text index as needed on this new table.

    The main twist is to keep this new table in sync with the master table. The best means to do so is to use triggers on insert, update and delete of the master table.

    An additional twist is to prevent end-users from tampering with the full text indexed table. This can be done with triggers too, but there’s a better way: create a db user (e.g. tg_user), and grant him ownership of this table. Then revoke all except select to other users. And make sure that you use the definer clause when creating the above-mentioned triggers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to use full text search but the tables that I am using
I need to allow full-text searching on two fields that are concatenated together. In
I have two tables that make up a full text index of article content
Got a requirement to rebuild mssql full-text index. Problem is - I need to
What options exist for creating a scalable, full text search with results that need
Im using full text search to find rows that have a word near another
I'm using a full-text search in one of my stored procedures. Prior to that
Is there a way to perform a full text search of a subversion repository,
I am using acts_as_ferret(0.4.3) to do full-text searching, but when update index I need
I need to pick only a full word using regex,I don't want to pick

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.