title: mysql - extract specific words from text field using full text search
body: <p>My question is a little simillar to <a href="https://stackoverflow.com/questions/5185071/extract-specific-words-from-text-field-in-mysql">Extract specific words from text field in mysql</a>, but now the same.</p>
  
  <p>I have a text field with words inside. In my language word can have many different endings. I need to find this endings.</p>
  
  <p>I use fulltext search of mysql, but I would need to have access to the index database where all the field is "cut" to words and words are counted. I could then search for "test*" and I could quickly find "test", "tested", "testing". I need the list of all endigns that exist in my database, that is my primary goal.</p>
  
  <p>As it is I can get the records with specific "test*" words in it, but I need not only to locate the occurence in the field, but to group somehow so I get the list of all the words that for example start with "test". I don't need location in which record they are, just a list, grouped so that "testing" is not written 10 times but only once (maybe a counter of how many times it is found but not necessary).</p>
  
  <p>Is there a way to extract this info from fulltextsearch field or should I explode all this fields to words and make a index table full of words and just do a "like "word%" and group by the different results? I am not sure how to do that either in practice, but just to point me to the right direction please.</p>
  
  <p>So to summarize: I have a text fied and I need to find out which words are inside that start with "test", like "tested", "test", "testing" etc... It doesn't make sense in English but in my language it does as we have same word on different endigns and there are so many of them, somethimes 20, I need to find out which ones are there so I can make a synonims table ;-)</p>
  
  <p>UPDATE:</p>
  
  <p>Database has columns ID (int), ingredients (text) and recipe (text).</p>
  
  <p>Data in ingredients are cooking ingredients with different endings like:</p>
  
  <p>1 egg
  2 eggs</p>
  
  <p>etc.</p>