Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix search for C++ and C# #188

Open
jace opened this issue Mar 23, 2015 · 0 comments
Open

Fix search for C++ and C# #188

jace opened this issue Mar 23, 2015 · 0 comments

Comments

@jace
Copy link
Member

jace commented Mar 23, 2015

C++ and C# are reduced to C by PostgreSQL's full text indexing because punctuation is discarded. It should be possible to apply a synonym dictionary before indexing and querying according to these links:

http://stackoverflow.com/questions/2242368/how-can-i-match-things-like-c-and-c-in-postgresqls-full-text-search
http://www.postgresql.org/docs/9.4/static/textsearch-dictionaries.html

(Neither link is clear on whether synonym dictionaries can be used for words with punctuations like C++ and C#.)

Unfortunately, PostgreSQL dictionaries require a file to be placed in PostgreSQL's shared folders, which is out of scope for deployment with either a database migration or a Makefile. Implementing this dictionary will have to be a one-off manual task on the server, with a note left in the README for future deployments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant