webguync Posted March 7, 2011 Share Posted March 7, 2011 Hi, I am working on a form that will bring up data from the MySQL tables. I did some research and realized I needed to a mult-column full-text index in order for the search application to work. In PHP MyAdmin under the SQL area I added this statement. CREATE FULLTEXT INDEX SearchMe ON ResultsTable (col1,col2, col3.col4,col5); I tried the search application again and get this error. SELECT col1, col2,col3,col4,col5 FROM ResultsTable WHERE MATCH(col1, col2,col3,col4,col5) AGAINST ('SearchName') When I enter the SQL code in PHPMyAdmin the result says "#1191 - Can't find FULLTEXT index matching the column list " so I need to figure out which columns got indexed and which are not or why they don't match up. How can I do this? Quote Link to comment https://forums.phpfreaks.com/topic/229886-full-text-index-doesnt-math-the-column-list/ Share on other sites More sharing options...
fenway Posted March 7, 2011 Share Posted March 7, 2011 What's col3.col4? That doesn't make any sense. Quote Link to comment https://forums.phpfreaks.com/topic/229886-full-text-index-doesnt-math-the-column-list/#findComment-1184045 Share on other sites More sharing options...
webguync Posted March 7, 2011 Author Share Posted March 7, 2011 it's the names of the columns in my table. I was just using dummy names instead of the real ones (last_name, first_name etc.) Quote Link to comment https://forums.phpfreaks.com/topic/229886-full-text-index-doesnt-math-the-column-list/#findComment-1184050 Share on other sites More sharing options...
fenway Posted March 7, 2011 Share Posted March 7, 2011 Well, since you're getting a real error, and not a dummy one, tell us what's actually going on. Quote Link to comment https://forums.phpfreaks.com/topic/229886-full-text-index-doesnt-math-the-column-list/#findComment-1184065 Share on other sites More sharing options...
webguync Posted March 7, 2011 Author Share Posted March 7, 2011 it looks like I figured out my own problem, thanks. Quote Link to comment https://forums.phpfreaks.com/topic/229886-full-text-index-doesnt-math-the-column-list/#findComment-1184113 Share on other sites More sharing options...
fenway Posted March 7, 2011 Share Posted March 7, 2011 Great -- now tell us what it was. Quote Link to comment https://forums.phpfreaks.com/topic/229886-full-text-index-doesnt-math-the-column-list/#findComment-1184215 Share on other sites More sharing options...
webguync Posted March 7, 2011 Author Share Posted March 7, 2011 it was a matter of indexing columns that I inadvertently didn't included in my Select list. SELECT col1, col2,col3,col4,col5 FROM ResultsTable WHERE MATCH(col1, col2,col3,col4,col5) AGAINST ('SearchName') when I added all of the columns, I no longer got an error. Quote Link to comment https://forums.phpfreaks.com/topic/229886-full-text-index-doesnt-math-the-column-list/#findComment-1184222 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.