{"action":"created","issue":{"url":"https://api.github.com/repos/thoughtbot/administrate/issues/157","repository_url":"https://api.github.com/repos/thoughtbot/administrate","labels_url":"https://api.github.com/repos/thoughtbot/administrate/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/administrate/issues/157/comments","events_url":"https://api.github.com/repos/thoughtbot/administrate/issues/157/events","html_url":"https://github.com/thoughtbot/administrate/issues/157","id":115316448,"number":157,"title":"Smart Searching","user":{"login":"graysonwright","id":829576,"avatar_url":"https://avatars.githubusercontent.com/u/829576?v=3","gravatar_id":"","url":"https://api.github.com/users/graysonwright","html_url":"https://github.com/graysonwright","followers_url":"https://api.github.com/users/graysonwright/followers","following_url":"https://api.github.com/users/graysonwright/following{/other_user}","gists_url":"https://api.github.com/users/graysonwright/gists{/gist_id}","starred_url":"https://api.github.com/users/graysonwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graysonwright/subscriptions","organizations_url":"https://api.github.com/users/graysonwright/orgs","repos_url":"https://api.github.com/users/graysonwright/repos","events_url":"https://api.github.com/users/graysonwright/events{/privacy}","received_events_url":"https://api.github.com/users/graysonwright/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thoughtbot/administrate/labels/Feature%20Request","name":"Feature Request","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-05T16:09:18Z","updated_at":"2016-03-22T07:28:33Z","closed_at":null,"body":"The long-term plan for the search bar is to support structured queries, to allow people to do complex searches over the data from a single field.\r\n\r\nWe'd like to support:\r\n\r\n- Searching numeric fields for values greater than, less than, or equal to a given number\r\n- Searching text fields for text including a given string\r\n- Searching boolean fields by `true` or `false` value\r\n- More than one of these ^ in the same search\r\n\r\nBonus points for a scheme that will let us search custom field types using dev-defined strategies.\r\n\r\nI want to open up a discussion about the best way to structure the search queries.\r\n\r\n- If you know of other apps or projects that do multi-field search well, please share them for inspiration.\r\n- If you have an opinion on what the query structure should look like, chime in!"},"comment":{"url":"https://api.github.com/repos/thoughtbot/administrate/issues/comments/199678514","html_url":"https://github.com/thoughtbot/administrate/issues/157#issuecomment-199678514","issue_url":"https://api.github.com/repos/thoughtbot/administrate/issues/157","id":199678514,"user":{"login":"kubenstein","id":74097,"avatar_url":"https://avatars.githubusercontent.com/u/74097?v=3","gravatar_id":"","url":"https://api.github.com/users/kubenstein","html_url":"https://github.com/kubenstein","followers_url":"https://api.github.com/users/kubenstein/followers","following_url":"https://api.github.com/users/kubenstein/following{/other_user}","gists_url":"https://api.github.com/users/kubenstein/gists{/gist_id}","starred_url":"https://api.github.com/users/kubenstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubenstein/subscriptions","organizations_url":"https://api.github.com/users/kubenstein/orgs","repos_url":"https://api.github.com/users/kubenstein/repos","events_url":"https://api.github.com/users/kubenstein/events{/privacy}","received_events_url":"https://api.github.com/users/kubenstein/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T07:28:33Z","updated_at":"2016-03-22T07:28:33Z","body":"im also struggling with custom search. was thinking that if `Administrate::Search` is passed as a param to index action, someone can provide its own custom searcher, so something like this:\r\n```ruby\r\nmodule Administrate\r\n  class ApplicationController < ActionController::Base\r\n    def index(searcher = Administrate::Search) \r\n      #...\r\n      resources = searcher.new(resource_resolver, search_term).run \r\n      #...\r\n    end\r\n#...\r\nend\r\n```\r\nand custom controller:\r\n```ruby\r\nmodule Admin\r\n  class CustomController < Admin::ApplicationController\r\n    def index\r\n       super(MyCustomSearcher)\r\n    end\r\n  end\r\nend\r\n```\r\n"}}