Jump to content

[SOLVED] No results for FREETEXT search? (beginner)


Ge64

Recommended Posts

How do I get this to return some results?

 

mysql> SELECT * FROM information;
+------+-----------------------+-----------+------+---------------------+--------+---------+
| id   | tags                  | data      | type | date                | source | subject |
+------+-----------------------+-----------+------+---------------------+--------+---------+
|    0 | this,that,the other   | SOMESHIT  | NULL | 2008-05-17 16:59:49 | NULL   | NULL    |
|    1 | this,that,the other   | whatever3 | NULL | 2008-05-17 16:59:49 | NULL   | NULL    |
|    2 | bla your mouse coffee | whatever  | NULL | 2008-05-17 16:59:49 | NULL   | NULL    |
+------+-----------------------+-----------+------+---------------------+--------+---------+
3 rows in set (0.01 sec)

mysql> SELECT id,data FROM information WHERE MATCH (tags) AGAINST('your');
Empty set (0.00 sec)

mysql> 

 

This is my table according to CocoaMySQL:

 

picture7kt7.png

 

Is there anything else I need to do before this works, I've never tried it before.

 

Edit: I'm using 4.1.22-log

Link to comment
Share on other sites

'your' word is in default MySQL FULLTEXT stopword list. Check information about FULLTEXT configuration variables: ft_stopword_file, ft_min_word_len, etc. There are more restrictions for using FULLTEXT, please check relevant manual entries.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.