Ver: 8.3.5 DB: MariaDB 10.6 (may be match work different in the mysql)
Problem: If full-text search is enabled in the linked entity, quick selection does not work
Roots of the problem: Full-text search in "Natural language mode" does not work by substring.
ORM must use the construction
against
Test data:
first_name;last_name
"Contact","1"
"Contact","2"
MariaDB results:
AGAINST ('con' in natural language mode ) : 0
AGAINST ('con*' in natural language mode ): 0
AGAINST ('con' in boolean mode ): 0
AGAINST ('con*' in boolean mode ): 2
yuri ?
Problem: If full-text search is enabled in the linked entity, quick selection does not work
Roots of the problem: Full-text search in "Natural language mode" does not work by substring.
ORM must use the construction
Code:
select first_name, last_name, MATCH (last_name, first_name) AGAINST ('substr*' in boolean mode ) as m from contact order by m desc;
against
Code:
select first_name, last_name, MATCH (last_name, first_name) AGAINST ('substr' in natural language mode ) as m from contact order by m desc;
first_name;last_name
"Contact","1"
"Contact","2"
MariaDB results:
AGAINST ('con' in natural language mode ) : 0
AGAINST ('con*' in natural language mode ): 0
AGAINST ('con' in boolean mode ): 0
AGAINST ('con*' in boolean mode ): 2
yuri ?
Comment