Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access to FULLTEXT index

Status
Not open for further replies.

MacTommy

Programmer
Feb 26, 2007
116
NL
I created some tables that have a FULLTEXT index on some columns.
Obviously, MySQL stores these indexes somewhere?
My question is: where?!?

Or my real question is: how can I retrieve information from these indexes (like all the words they contain).

(I already asked this question a while back (thread436-1347948) but nobody answered... :-( )
 
it might be in (under windows) program files/mysql server/data/<dbname>
I get a file called tablename.MYI which I assume is mysql Index, it seems to be empty i.e. all nulls but does grow as I add rows to the base table.
What are you trying to do ?
 
Thanks! You are right. That file certainly is there, but it looks rather garbled I must say ;-)
I guess it is in some efficient MySQL-internal format.

What I want to do is iterate over all the words in the index...
 
oops, stoped the server and it flushed the file. I'll have a look at the contents
 
ok !,
look at and search for myisam_ftdump.
It's in my bin directory I called it like this:
Code:
myisam_ftdump fulltext_sample 0 -d
where 0 (zero) is the index number and I only have the ful text index on this table.
Output I got was:
Code:
       54            0.9886308 alert
       88            0.9775171 alert
        0            0.9775171 appears
        0            0.9775171 good
       88            0.9775171 good
       3c            0.9886308 hear
       6c            0.9886308 love
       20            0.9886308 past
You'll have to read the internals page to see what the values mean.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top