{"action":"created","issue":{"url":"https://api.github.com/repos/ankane/searchkick/issues/374","labels_url":"https://api.github.com/repos/ankane/searchkick/issues/374/labels{/name}","comments_url":"https://api.github.com/repos/ankane/searchkick/issues/374/comments","events_url":"https://api.github.com/repos/ankane/searchkick/issues/374/events","html_url":"https://github.com/ankane/searchkick/issues/374","id":55664920,"number":374,"title":"Issue when using :word_start on several fields","user":{"login":"Florent2","id":51865,"avatar_url":"https://avatars.githubusercontent.com/u/51865?v=3","gravatar_id":"","url":"https://api.github.com/users/Florent2","html_url":"https://github.com/Florent2","followers_url":"https://api.github.com/users/Florent2/followers","following_url":"https://api.github.com/users/Florent2/following{/other_user}","gists_url":"https://api.github.com/users/Florent2/gists{/gist_id}","starred_url":"https://api.github.com/users/Florent2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Florent2/subscriptions","organizations_url":"https://api.github.com/users/Florent2/orgs","repos_url":"https://api.github.com/users/Florent2/repos","events_url":"https://api.github.com/users/Florent2/events{/privacy}","received_events_url":"https://api.github.com/users/Florent2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-27T19:44:16Z","updated_at":"2015-01-31T23:16:36Z","closed_at":null,"body":"The following test fails\r\n\r\n```ruby\r\n  def test_partial_on_second_of_several_fields\r\n    store [\r\n      {name: \"Eggplant\", color: \"violet\"},\r\n    ]\r\n    assert_search \"vio\", [\"Eggplant\"], fields: [name: :word_start, color: :word_start]\r\n  end\r\n```\r\n\r\nwhile this one passes:\r\n\r\n```ruby\r\n  def test_partial_on_first_of_several_fields\r\n    store [\r\n      {name: \"Eggplant\", color: \"violet\"},\r\n    ]\r\n    assert_search \"vio\", [\"Eggplant\"], fields: [color: :word_start, name: :word_start]\r\n  end\r\n```\r\n\r\nI was expecting the partial to search whatever is the order of attribute in the `fields` options. Maybe I am missing something?\r\n\r\nHere is my forked test file containing these tests: https://github.com/Florent2/searchkick/commit/c288c83ab19b9a334c5ff6b14fade06466b83d09"},"comment":{"url":"https://api.github.com/repos/ankane/searchkick/issues/comments/72342062","html_url":"https://github.com/ankane/searchkick/issues/374#issuecomment-72342062","issue_url":"https://api.github.com/repos/ankane/searchkick/issues/374","id":72342062,"user":{"login":"ankane","id":220358,"avatar_url":"https://avatars.githubusercontent.com/u/220358?v=3","gravatar_id":"","url":"https://api.github.com/users/ankane","html_url":"https://github.com/ankane","followers_url":"https://api.github.com/users/ankane/followers","following_url":"https://api.github.com/users/ankane/following{/other_user}","gists_url":"https://api.github.com/users/ankane/gists{/gist_id}","starred_url":"https://api.github.com/users/ankane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankane/subscriptions","organizations_url":"https://api.github.com/users/ankane/orgs","repos_url":"https://api.github.com/users/ankane/repos","events_url":"https://api.github.com/users/ankane/events{/privacy}","received_events_url":"https://api.github.com/users/ankane/received_events","type":"User","site_admin":false},"created_at":"2015-01-31T23:16:36Z","updated_at":"2015-01-31T23:16:36Z","body":"Hey Florent, the syntax is slightly off. Try: `[{color: :word_start}, {name: :word_start}]`"}}