Jump to content
Larry Ullman's Book Forums

Recommended Posts

Chapter 7: Advanced SQL and MySQL - Fifth Edition of PHP and MySQL for Dynamic Web Sites Visual QuickPro Guide

Page 229 - Table 7.3

It says 

Quote

Operator - ~

Meaning - Lowers a ranking if present

Operator: <

Meaning: Decrease a word's importance

I don't understand the difference between lowering importance and lowering ranking. Doesn't decreasing the importance decrease the ranking? Can someone please explain to me the difference between the 2?

Thanks,

Varun

Edited by Marvin
Changed Title to make 'versus' more obvious

Share this post


Link to post
Share on other sites

Sorry for the confusion here. It's a subtle difference. Here's what the MySQL manual says:

Quote

These two operators are used to change a word's contribution to the relevance value that is assigned to a row. The > operator increases the contribution and the < operator decreases it.

and

Quote

A leading tilde acts as a negation operator, causing the word's contribution to the row's relevance to be negative. This is useful for marking noise words. A row containing such a word is rated lower than others, but is not excluded altogether, as it would be with the- operator.

I guess I'd phrase it as ~ being more impactful than <. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×