MySQL Forums
Forum List  »  Full-Text Search

myisam/ftdefs.h, <ctype><map>, etc. Please help!
Posted by: Sourav Choudhury
Date: May 20, 2007 03:17PM

Hi guys

I am trying to include some characters like - and & in my fulltext search. I have learned that I can do that in two ways.

1. By editing my myisam/ftdefs.h file. Problem - I could not find this file in my server. I am using a dedicated server from a third party and it's not me who compiled my server at the beginning.

2. By changing the <ctype><map> thing. This seems to be an easier solution as well since I don't need to recompile my mysql. Now when I located the file /usr/share/mysql/charsets/latin1.xml, I found this -

<ctype>
<map>
00
20 20 20 20 20 20 20 20 20 28 28 28 28 28 20 20
20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
48 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10
84 84 84 84 84 84 84 84 84 84 10 10 10 10 10 10
10 81 81 81 81 81 81 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 01 01 01 01 01 10 10 10 10 10
10 82 82 82 82 82 82 02 02 02 02 02 02 02 02 02
02 02 02 02 02 02 02 02 02 02 02 10 10 10 10 20
10 00 10 02 10 10 10 10 10 10 01 10 01 00 01 00
00 10 10 10 10 10 10 10 10 10 02 10 02 00 02 01
48 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10
10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10
01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 01 10 01 01 01 01 01 01 01 02
02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02
02 02 02 02 02 02 02 10 02 02 02 02 02 02 02 02
</map>
</ctype>

I am pretty lost here, unable to understand how can I incorporate characters like - and & in this sea of numbers.

I am working on issue since yesterdayn googled for hours, with no result for the moment. Any help would be highly appreciated.

And there is another thing I'm worried about. The characters that I want to include,are also part of ft_boolean_syntax. Now should I change the ft_boolean_syntax as well once I include - and & as part of word search? And if yes, with what character can I change them? Thanks for throwing some light here.

Thanks and best regards.



Edited 1 time(s). Last edit at 05/20/2007 03:37PM by Sourav Choudhury.

Options: Reply• Quote


Subject
Views
Written By
Posted
myisam/ftdefs.h, <ctype><map>, etc. Please help!
5222
May 20, 2007 03:17PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.