473,324 Members | 2,179 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,324 software developers and data experts.

ft_stopword_file

9
I want to create my own stopwords file. But it just won't work for me.

Before applying my own file I run the following query:
Expand|Select|Wrap|Line Numbers
  1. Select title from table where MATCH (title) AGAINST ('+The +Confession' IN BOOLEAN MODE) 
I get two results:
  1. title = The confession
  2. title = confession
After creating my own stopwords file I run the same query and get NO Results.

I have verified "the" is in my stopword file and should also be considered a default stop word.

What I have done so far:
  1. Created stopword.txt
  2. Populated stopwords.txt with default stop words (taken from http://dev.mysql.com/tech-resources/articles/full-text-revealed.html).
  3. added: ft_stopword_file = /etc/stopwords.txt to my.cnf
  4. Restarted mysql
  5. Restarted tomcat (just to be sure)
  6. On mysql command line: show variables like 'ft_%' and I see variable set correctly

Any ideas why the above query is returning no results when i use the ft_stopword_file variable?

Thanks.
Dec 11 '07 #1
2 5663
Cli
9
I want to create my own stopwords file. But it just won't work for me.

I found the missing step. Had to rebuild the fulltext index.
Thanks anyway
Dec 12 '07 #2
mwasif
802 Expert 512MB
Good work Cli. Just for future reference, you also have to re-create FULLTEXT index whenever you change ft_min_word_len.
Dec 12 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

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...
3
by: Albretch | last post by:
I am trying to insert some textual data belonging to an HTML page into a table column with 'TEXT' as data type mysql's maual _/manual.html#String_types tell you, you may insert up to (2^16 - 1),...
1
by: jlee | last post by:
I'm pretty much a newbie on mysql, and I need some help. I am running mysql Ver 12.22 Distrib 4.0.24, for portbld-freebsd5.4 (i386) on a server hosting an active website. The site's developer...
2
by: Dámaso Velázquez Álvarez | last post by:
Hi! I am working with mysql server 5.0 an I have an Index in a database table, but I need to index the word 'once'. My index it's not indexing it because once is a number... How can I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.