K
K
Ken Jee2015-08-24 23:00:44
PostgreSQL
Ken Jee, 2015-08-24 23:00:44

How is synonym search implemented in PostgreSQL database in PHP?

How to implement a search for synonyms of an expression in the database? This is necessary to identify different spellings of the same expression. For example, before adding the product "Vendor Model Color" to the table, you need to find out if the product "Vendor Model" or "Vendor Model Something" is not there. Someone must have come across this issue. Please tell me how to implement it.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Nikiforov, 2015-08-24
@eoffsock

For complex cases: www.postgresql.org/docs/9.1/static/dict-xsyn.html
For simple cases:LIKE

M
Mr Freeman, 2015-08-25
@vladamir

Do you really know the meaning of the word "synonyms"? From your example, you can see that the usual LIKE will do.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question