Casecommons / pg_search

pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search

Home Page:http://www.casebook.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

blog post about multi-column indexes

jjb opened this issue · comments

I wrote this blog post about making multi-column indexes to cover pg_search queries

I was surprised to not find any guidance on this anywhere

maybe it would be helpful to link here from the wiki page on indexes? and/or i'm happy to inline it into the page if that's preferred.

please give me any and all feedback, thanks!

http://code.jjb.cc/how-to-create-a-multi-column-full-text-search-index-in-postgres

We have a wiki page about indexes, although it's probably not the easiest thing to discover.

https://github.com/Casecommons/pg_search/wiki/Building-indexes

yep! that's what i was referring to re: "maybe it would be helpful to link here from the wiki page on indexes? and/or i'm happy to inline it into the page if that's preferred."

i think the current wiki page doesn't cover multiple columns?

That's a good point. It was intended to explain that you could have multiple columns in the expression, but it doesn't do a great job of explaining how that looks when multiple columns are involved.

If you want to expand the wiki page and/or add a link to your blog post, I think it would be completely appropriate and helpful. Thanks for leaving things better than you found them! 😄