dbTalk Databases Forums  

match against with another clause

comp.databases.mysql comp.databases.mysql


Discuss match against with another clause in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
j
 
Posts: n/a

Default match against with another clause - 12-25-2011 , 08:09 AM






I have a full text table that I wish to search by matches and by date.
Specifically my sql looks like this:

SELECT url,title,link_date,headings,MATCH (title,content) AGAINST (?) AS
score FROM my_table WHERE MATCH (title,content) AGAINST(?) AND link_date
Quote:
= ? AND link_date <= ?'
This does not appear to work. How do I filter full text matches?

Jeff

Reply With Quote
  #2  
Old   
Luuk
 
Posts: n/a

Default Re: match against with another clause - 12-26-2011 , 03:56 AM






On 25-12-2011 15:09, j wrote:
Quote:
I have a full text table that I wish to search by matches and by date.
Specifically my sql looks like this:

SELECT url,title,link_date,headings,MATCH (title,content) AGAINST (?) AS
score FROM my_table WHERE MATCH (title,content) AGAINST(?) AND link_date
= ? AND link_date <= ?'

This does not appear to work. How do I filter full text matches?

Jeff
do this:
mysql> show variables like 'ft%';
+--------------------------+----------------+
Quote:
Variable_name | Value |
+--------------------------+----------------+
ft_boolean_syntax | + -><()~*:""&| |
ft_max_word_len | 84 |
ft_min_word_len | 4 |
ft_query_expansion_limit | 20 |
ft_stopword_file | (built-in) |
+--------------------------+----------------+
5 rows in set (0.00 sec)


and find out what the value mean that get returned.
more info:
http://dev.mysql.com/doc/refman/5.0/...ne-tuning.html

--
Luuk

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.