Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

postgresql. full text search for queries with misprints

Is it possible to implement full text search using postgresql when queries can be with misprints? I couldn't find it in manual.

like image 909
varan Avatar asked Nov 01 '22 07:11

varan


1 Answers

I'm not totally sure what you mean by misprint.

If you are looking for fuzzy string matching, the fuzzystrmatch extension is what you want.

fuzzystrmatch is a module, you must "install" it by running :

CREATE EXTENSION fuzzystrmatch;

This way of installing extensions exists since PostgreSQL 9.1.

For previous versions, you needed to run the sql script in the contrib dir for that extension against your database.

like image 124
Raphaël Braud Avatar answered Nov 09 '22 14:11

Raphaël Braud