Ask Your Question
3

Why does the Mysql MATCH AGAINST fail to locate a string with a dot?

asked 2021-10-31 11:00:00 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-04-14 20:00:00 +0000

djk gravatar image

There are several possible reasons why the Mysql MATCH AGAINST function may fail to locate a string with a dot:

  1. The dot may be considered as a word delimiter, therefore the search algorithm may ignore it. This is because Mysql considers certain characters, including the dot, as word delimiters or stop words.

  2. The dot may be part of a larger word that has been excluded from the search index. By default, Mysql ignores words that are too common, too short, or too long, or those that appear in more than 50% of the rows.

  3. The MATCH AGAINST function may not be suitable for searching for strings with dots, as it uses a full-text search algorithm that is optimized for natural language queries, rather than precise match queries.

To overcome these limitations, you can try using other search functions or methods, such as regular expressions, string comparison operators, or custom search algorithms. You can also modify the configuration of the Mysql full-text search index, to include or exclude specific words or characters.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-10-31 11:00:00 +0000

Seen: 17 times

Last updated: Apr 14 '21