473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

stop words in mysql - ignoring a/an/the

What are the mechanisms to make words like a/an/the in text and varchar
character fields ignored when performing SELECT and utilizing ORDER BY
in SQL queries?

I've done some hunting around into documentation on character sets (but
they are geared mainly at character-by-character rules) and saw some
reference to string collating and stop words -- but not seen any of this
all put together.

Thanks for any assistance,
Paul Bramscher
Jul 23 '05 #1
2 2355
Paul Bramscher wrote:
What are the mechanisms to make words like a/an/the in text and varchar
character fields ignored when performing SELECT and utilizing ORDER BY
in SQL queries?

I've done some hunting around into documentation on character sets (but
they are geared mainly at character-by-character rules) and saw some
reference to string collating and stop words -- but not seen any of this
all put together.

Thanks for any assistance,
Paul Bramscher


No way to make mySQL a library or title-friendly database? I'd like to
ORDER BY records while ignoring common words like a/an/the which often
start titles of books, journals, etc.

I've thought about filtering these out in the input side, perhaps
creating a mirrored field which performs the real ..."ORDER BY
title_filtered" -- and display the actual title in its place -- but this
seems a little kludgy, something the RDBMS should be able to handle
natively with a language ruleset.

Nobody experiment with anything like this?
Jul 23 '05 #2
Paul Bramscher wrote:
No way to make mySQL a library or title-friendly database? I'd like to
ORDER BY records while ignoring common words like a/an/the which often
start titles of books, journals, etc.


As far as I know, the only part of MySQL that supports stop words is the
Full-text Search feature.

There are ways to use the relevance value returned by MATCH() in an
ORDER BY clause (see user comment from Patrick O'Lone at
http://dev.mysql.com/doc/mysql/en/Fulltext_Search.html), but this isn't
the same thing as sorting by the string while ignoring stop words.

I think you need to maintain an additional column, with stop words
filtered out of titles, so you can sort by the title in the format you want.

Regards,
Bill K.
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Brad Tilley | last post by:
I'm printing some info into a txt file that will be uploaded into a MySQL DB. I use ';' as field separaters. How can I stop spaces from appearing on both sides of the ';' When I do this: ...
8
by: Rob Meade | last post by:
Lo all, Ok - I'm adding site search functionality to a database driven website. I have a list of 390 stop/ignore words, having looked at ASPFAQ already I see that the example uses an array,...
0
by: Peter Engström | last post by:
Hi! I'm running MySQL 4.0.13 and have problem with fulltext search. I have a column of type 'text' which I fulltext index. I want to search for an e-mail address but I don't get any matches....
0
by: Cleber Hostalácio de Melo | last post by:
Hi, I need to change the stop word file used by the MySQL in fulltext seach. The documentation (www.mysql.com/doc/en/Fulltext_Fine-tuning.html) explains how to inform to MySQL the new stop...
7
by: Timo Haberkern | last post by:
Hi there, i have some troubles with my TSearch2 Installation. I have done this installation as described in http://www.sai.msu.su/~megera/oddmuse/index.cgi/Tsearch_V2_compound_words...
13
by: miker2 | last post by:
HI, I'm having trouble writing to a MySql db using python and the MySQLdb module. Here is the code: import MySQLdb base = MySQLdb.connect(host="localhost", user="blah", passwd="blah",...
110
by: alf | last post by:
Hi, is it possible that due to OS crash or mysql itself crash or some e.g. SCSI failure to lose all the data stored in the table (let's say million of 1KB rows). In other words what is the worst...
4
by: Jerim | last post by:
I have a script on one server, trying to access the MySQL database on another server. The server with the script is on an outside network, hosted with another company. The MySQL server is here in...
39
by: alex | last post by:
I've converted a latin1 database I have to utf8. The process has been: # mysqldump -u root -p --default-character-set=latin1 -c --insert-ignore --skip-set-charset mydb mydb.sql # iconv -f...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.