title: MySQL Match Fulltext
body: <p>Im' trying to do a fulltext search with mysql, to match a string. The problem is that it's returning odd results in the first place.</p>
  
  <p>For example, the string 'passat 2.0 tdi' :</p>
  
  <pre><code>            AND MATCH (
              records_veiculos.titulo, records_veiculos.descricao
              )
              AGAINST (
               'passat 2.0 tdi' WITH QUERY EXPANSION
              )
  </code></pre>
  
  <p>is returning this as the first result (the others are fine) :</p>
  
  <pre><code>Volkswagen Passat Variant 1.9 TDI- ANO 2003
  </code></pre>
  
  <p>wich is incorrect, since there's no "2.0" in this example.</p>
  
  <p>What could it be? </p>
  
  <p><strong>edit</strong>: Also, since this will probably be a large database (expecting up to 500.000 records), will this search method be the best for itself, or would it be better to install any other search engine like Sphinx? Or in case it doesn't, how to show relevant results?</p>
  
  <p><strong>edit2</strong>: For the record, despite the question being marked as answered, the problem with the MySQL delimiters persists, so if anyone has a suggestion on how to escape delimiters, it would be appreciated and worth the 500 points at stake. The sollution I found to increase the resultset was to replace WITH QUERY EXPANSION with IN BOOLEAN MODE, using operators to force the engine to get the words I needed, like :</p>
  
  <pre><code>AND MATCH (
  records_veiculos.titulo, records_veiculos.descricao
  )
  AGAINST (
   '+passat +2.0 +tdi' IN BOOLEAN MODE
  )
  </code></pre>
  
  <p>It didn't solve at all, but at least the relevance of the results as changed significantly.</p>