D
D
duoman2018-12-19 13:46:16
PostgreSQL
duoman, 2018-12-19 13:46:16

How to perform a quick search by occurrences?

Good afternoon! There is a need to implement on occurrences. From the postgres documentation I found how to search for records starting with the query to_tsquery('Willow:*'). But I need to do a search for an occurrence in a word. I can not find how to build a query correctly.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2018-12-19
@duoman

Finding the exact occurrence of a substring in a string? LIKE '%...%'
Plus trigram index from pg_trgm contrib

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question