Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Comparing sets of phrases stored in a database?

by erix (Vicar)
on Sep 30, 2012 at 20:33 UTC ( #996537=note: print w/ replies, xml ) Need Help??


in reply to Comparing sets of phrases stored in a database?

Interesting question.

In PostgreSQL there are some text tools that may already be adequate for such a database:

The built-in full-text search (includes indexing, parsing, stemming, ranking). [1]

The extension pg_trgm (trigrams). Can be used to index, provides similarity functions. [2]

The extension fuzzystrmatch (with soundex, levenshtein etc.). [3]

[1] http://www.postgresql.org/docs/current/static/textsearch.html

[2] http://www.postgresql.org/docs/current/static/pgtrgm.html

[3] http://www.postgresql.org/docs/current/static/fuzzystrmatch.html


Comment on Re: Comparing sets of phrases stored in a database?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996537]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (12)
As of 2015-07-30 17:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls