Log in

View Full Version : Search on words with dashes in them


paule1234
04-26-2007, 12:36 AM
I need to be able to search my forum for words with dashes in them. From what I understand putting a dash in a search term removes the following word/character from the search, and in my case no search results are returned. I have v3.6.5 running fulltext search. If someone can point me to the place in code where this behavior can be changed, I would appreciate it.

Edit: I think I have a workaround for this... Since the codes I need to search on are similar to "P-1" or "P-10" etc., and dash is not a word according to mysql, I set the VB search min word length to 1 and also added a line to the mysql my.ini file to indicate ft_min_word_len=1

Now when "P-1" is put in the search box with quotes, the correct results are returned.