{"action":"created","issue":{"url":"https://api.github.com/repos/Casecommons/pg_search/issues/196","labels_url":"https://api.github.com/repos/Casecommons/pg_search/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/Casecommons/pg_search/issues/196/comments","events_url":"https://api.github.com/repos/Casecommons/pg_search/issues/196/events","html_url":"https://github.com/Casecommons/pg_search/issues/196","id":46812690,"number":196,"title":"Case insensitive search?","user":{"login":"RickCarlino","id":1388608,"avatar_url":"https://avatars.githubusercontent.com/u/1388608?v=3","gravatar_id":"","url":"https://api.github.com/users/RickCarlino","html_url":"https://github.com/RickCarlino","followers_url":"https://api.github.com/users/RickCarlino/followers","following_url":"https://api.github.com/users/RickCarlino/following{/other_user}","gists_url":"https://api.github.com/users/RickCarlino/gists{/gist_id}","starred_url":"https://api.github.com/users/RickCarlino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RickCarlino/subscriptions","organizations_url":"https://api.github.com/users/RickCarlino/orgs","repos_url":"https://api.github.com/users/RickCarlino/repos","events_url":"https://api.github.com/users/RickCarlino/events{/privacy}","received_events_url":"https://api.github.com/users/RickCarlino/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-10-25T13:59:47Z","updated_at":"2015-07-07T03:47:07Z","closed_at":null,"body":"## Problem\r\n\r\nI have data that was imported from an external source with inconsistent capitalization. Searching in lowercase does not return the intented results. Eg: 'sno' returns 'snow' but not 'Snow'.\r\n\r\n```ruby\r\nclass Tag < ActiveRecord::Base\r\n  include PgSearch\r\n  pg_search_scope :autocomplete, against: :name,\r\n                                 using: {tsearch: {prefix: true}}\r\nend\r\n```\r\n\r\n## Question\r\n\r\nIs there a setting I can add to my search scope to make it case insensitive without needing to add AR validations / normalize the attributes being searched through?\r\n\r\nThanks for maintaining this project. It's been very helpful."},"comment":{"url":"https://api.github.com/repos/Casecommons/pg_search/issues/comments/119064012","html_url":"https://github.com/Casecommons/pg_search/issues/196#issuecomment-119064012","issue_url":"https://api.github.com/repos/Casecommons/pg_search/issues/196","id":119064012,"user":{"login":"asiniy","id":1296472,"avatar_url":"https://avatars.githubusercontent.com/u/1296472?v=3","gravatar_id":"","url":"https://api.github.com/users/asiniy","html_url":"https://github.com/asiniy","followers_url":"https://api.github.com/users/asiniy/followers","following_url":"https://api.github.com/users/asiniy/following{/other_user}","gists_url":"https://api.github.com/users/asiniy/gists{/gist_id}","starred_url":"https://api.github.com/users/asiniy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asiniy/subscriptions","organizations_url":"https://api.github.com/users/asiniy/orgs","repos_url":"https://api.github.com/users/asiniy/repos","events_url":"https://api.github.com/users/asiniy/events{/privacy}","received_events_url":"https://api.github.com/users/asiniy/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T03:47:07Z","updated_at":"2015-07-07T03:47:07Z","body":"Have the same problem too"}}