ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Full Text Search In MySQL: 8 Things (3 Min) You Need To Know

Автор: Gokce DB

Загружено: 2022-03-18

Просмотров: 2480

Описание: In this tutorial, you'll learn how to use full text search in the MySQL database.

—
Facebook:   / gokcedbsql  
—
Video Transcript:
—
Hi guys, this is Abhi from Gokcedb. In this video, you're going to learn eight things you need to know about full-text searches in the MySQL database. Let's start by looking at the entity relationship diagram. I have 15 tables in my database right now but in this tutorial, we'll mostly be running queries on the property table.

Number one before you can run text searches on a column you first have to create a full-text index here. I'm using the alter table statement to create a full-text index on the property underscore subdivision column. Use show creates a table, table syntax to verify if a full-text key exists for a column or not.

Number two, you can run full-text searches in three modes. In natural language mode with query expansion and in boolean mode. Number three, say I wanted to select all the rows from the property table where the property underscore subdivision column has the keyword, green or Sunland.

To do that, I'll make use of the match function and the against function in the where clause. The column name goes in the match function and the search terms go in the against function. Here I'm using the natural language mode search modifier.

Number four the natural language mode is the default search modifier so you don't have to specify it. Number five, say I wanted to select all these subdivisions with the keyword sun in them in the boolean mode. To do that I'll write sun in the boolean mode in the against function.

You can also use the minus operator in the boolean mode to further reduce the results set. Here I'm using the minus acres keyword to exclude all the subdivisions with the keyword acres in them. Number six, to find all the subdivisions that start with the keyword p i e r use t i e r star in boolean mode.

Number seven is to select all the subdivisions that have the keyword acres and the keyword sun. Use plus acres plus the sun in boolean mode. Last but not the least number eight, is used with query expansion.

Search modifier to find all the relevant and related keywords to the search terms. Here, I use the sun as my search term but in the results set as you can see we found a lot more relevant and related keywords. There you have it.

Make sure you like, subscribe, and turn on the notification bell. Until next time.

ALTER TABLE table_name ADD FULLTEXT(column_name1, column_name2,…)
IN NATURAL LANGUAGE MODE, WITH QUERY EXPANSION, IN BOOLEAN MODE
'GREEN,SUNLAND' IN NATURAL LANGUAGE MODE
IN NATURAL LANGUAGE MODE search modifier by default
AGAINST('SUN -ACRES' IN BOOLEAN MODE)
AGAINST('TIER*' IN BOOLEAN MODE)
AGAINST('+ACRES +SUN' IN BOOLEAN MODE)
AGAINST('SUN' WITH QUERY EXPANSION)

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Full Text Search In MySQL: 8 Things (3 Min) You Need To Know

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

3 Ways To Use Case Statement (2 Min) In MySQL

3 Ways To Use Case Statement (2 Min) In MySQL

15. MySQL 8 Fulltext index полнотекстовый индекс

15. MySQL 8 Fulltext index полнотекстовый индекс

PARADISE: NEB Crash Course - 2082 Batch

PARADISE: NEB Crash Course - 2082 Batch

Учебное пособие по полнотекстовому поиску в PostgreSQL

Учебное пособие по полнотекстовому поиску в PostgreSQL

How to Query MySQL Full Text Search Using MATCH and AGAINST

How to Query MySQL Full Text Search Using MATCH and AGAINST

How to Query SQL Server Full-Text Search Using CONTAINS and FREETEXT

How to Query SQL Server Full-Text Search Using CONTAINS and FREETEXT

Things every developer absolutely, positively needs to know about database indexing - Kai Sassnowski

Things every developer absolutely, positively needs to know about database indexing - Kai Sassnowski

Вся база SQL для начинающих за 1 час

Вся база SQL для начинающих за 1 час

Как НЕ следует становиться инженером данных в 2026 году (избегайте этих ошибок)

Как НЕ следует становиться инженером данных в 2026 году (избегайте этих ошибок)

Что нового в DuckDB 1.5?

Что нового в DuckDB 1.5?

Database Indexing for Dumb Developers

Database Indexing for Dumb Developers

I'm Ditching Try/Catch for Good!

I'm Ditching Try/Catch for Good!

Внешние источники данных в 1С - примеры использования

Внешние источники данных в 1С - примеры использования

Как Иран стал ПРОБЛЕМОЙ

Как Иран стал ПРОБЛЕМОЙ

Европейское НАТО бросает Трампа / ВМС США готовят бурю в Заливе /№1112/ Юрий Швец

Европейское НАТО бросает Трампа / ВМС США готовят бурю в Заливе /№1112/ Юрий Швец

Практический курс по SQL для начинающих - #1 Введение в PostgreSQL

Практический курс по SQL для начинающих - #1 Введение в PostgreSQL

Faster geospatial queries in MySQL

Faster geospatial queries in MySQL

Philipp Krenn — Full-Text Search Explained

Philipp Krenn — Full-Text Search Explained

MySQL Full Course 2026 | MySQL Tutorial For Beginners | SQL Full Course | SQL Training | Simplilearn

MySQL Full Course 2026 | MySQL Tutorial For Beginners | SQL Full Course | SQL Training | Simplilearn

Querying, Indexing, and Full-text Search in Redis

Querying, Indexing, and Full-text Search in Redis

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]