{"repo":"Casecommons/pg_search","free":true,"listed":false,"github":"https://github.com/Casecommons/pg_search","clone":"git clone https://github.com/Casecommons/pg_search.git","description":"pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search","language":"Ruby","stars":1575,"topics":["pg-search","ruby","tsearch","trigrams","search","postgresql","activerecord","metaphone","multi-search"],"license":"MIT","category":"databases-storage","readme_excerpt":"pg search DESCRIPTION PgSearch builds named scopes that take advantage of PostgreSQL's full text search. Read the blog post introducing PgSearch at https://tanzu.vmware.com/content/blog/pg-search-how-i-learned-to-stop-worrying-and-love-postgresql-full-text-search REQUIREMENTS - Ruby 3.3+ - Active Record 8.0+ - PostgreSQL 9.2+ - PostgreSQL extensions for certain features INSTALL or add this line to your Gemfile: Non-Rails projects In addition to installing and requiring the gem, you may want to include the PgSearch rake tasks in your Rakefile. This isn't necessary for Rails projects, which gain the Rake tasks via a Railtie. USAGE To add PgSearch to an Active Record model, simply include the PgSearch module. Contents - Multi-search vs. search scopes - Multi-search - Setup - multisearchable - More Options - Multi-search associations - Searching in the global search index - Chaining method calls onto the results - Configuring multi-search - Rebuilding search documents for a given class - Disabling multi-search indexing temporarily - pg search scope - Searching against one column - Searching against multiple columns - Dynamic search scopes - Searching through associations - Searching using different search features - :tsearch (Full Text Search) - Weighting - :prefix (PostgreSQL 8.4 and newer only) - :negation - :dictionary - :normalization - :any word - :sort only - :highlight - :dmetaphone (Double Metaphone soundalike search) - :trigram (Trigram search) - :threshold - :word simil","default_branch":null,"files":null,"tree":[],"storefront":"/r/Casecommons","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Casecommons/pg_search/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}