Funciones para manipular datos en PostgreSQL
Brian Piccolo
Sr. Director, Digital Strategy
SELECT title
FROM film
WHERE title LIKE 'ELF%';
+----------------------+
| title |
+----------------------+
| ELF PARTY |
+----------------------+
SELECT title
FROM film
WHERE title LIKE '%ELF';
+----------------------+
| title |
+----------------------+
| ENCINO ELF |
| GHOSTBUSTERS ELF |
+----------------------+
SELECT title
FROM film
WHERE title LIKE '%elf%';
+----------------------+
| title |
+----------------------+
SELECT title, description
FROM film
WHERE to_tsvector(title) @@ to_tsquery('elf');
+----------------------+
| title |
+----------------------+
| ELF PARTY |
| ENCINO ELF |
| GHOSTBUSTERS ELF |
+----------------------+
La búsqueda de texto completo permite consultas en lenguaje natural sobre texto en tu base de datos.
Lematización
Errores ortográficos
Ranking
SELECT title, description
FROM film
WHERE to_tsvector(title) @@ to_tsquery('elf');
Funciones para manipular datos en PostgreSQL