Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h2>From <a href="http://dev.mysql.com/doc/refman/5.5/en/fulltext-boolean.html" rel="nofollow">MySQL docs</a></h2> <ul> <li><p><code>+</code> A leading plus sign indicates that this word must be present in each row that is returned.</p></li> <li><p><code>*</code> The asterisk serves as the truncation (or wildcard) operator. Unlike the other operators, it should be appended to the word to be affected. Words match if they begin with the word preceding the * operator.</p> <p>If a word is specified with the truncation operator, it is not stripped from a boolean query, even if it is too short (as determined from the ft_min_word_len setting) or a stopword. This occurs because the word is not seen as too short or a stopword, <strong>but as a prefix that must be present in the document in the form of a word that begins with the prefix</strong>. </p></li> </ul> <h2>In Context:</h2> <p><strong>MATCH(...) AGAINST(...)</strong> </p> <p><code>MATCH (name) AGAINST ('+ski*' IN BOOLEAN MODE)</code> means that you're searching for rows where a word in the <code>name</code> column <em>must contain</em> <code>ski</code>, and <em>must begin</em> with the word <code>ski</code>.</p> <p>From the set you've posted, <code>Dartmouth Skiway</code> is the only <code>name</code> that conforms to these requirements: it contains the word <code>ski</code>, and is prefixed by the word <code>ski</code>. </p> <p>The other <code>name</code> columns, though they match the first rule: <em>must contain <code>ski</code></em>, they are not <em>prefixed with</em> <code>ski</code>, as stipulated in your rule. The row returned by your boolean search is the only one with a <code>name</code> column that contains a word that both <em>contains</em> <code>ski</code> and is a word <em>prefixed</em> by <code>ski</code>.</p> <p>As suggested by ajreal, try decreasing the <code>ft_min_len_word_setting</code> in <code>my.cnf</code>. Your search might be failing to come up with the results you expect because of the default setting. Try reducing it to 3.</p> <p><strong>WHERE column LIKE %text%</strong></p> <p><code>WHERE name LIKE "%ski%"</code> searches for rows with <code>name</code> columns that contain <code>ski</code>, no matter where the word occurs.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload