{"action":"created","comment":{"url":"https://api.github.com/repos/mmanos/laravel-search/pulls/comments/32955330","id":32955330,"diff_hunk":"@@ -124,6 +124,13 @@ public function select($columns = array('*'))\n \t}\n \t\n \t/**\n+\t * Create the index.\n+\t *\n+\t * @return bool\n+\t */\n+\tpublic function createIndex() {}","path":"src/Mmanos/Search/Index.php","position":8,"original_position":8,"commit_id":"cb9692a9b576f216c71e0662711e2ca22234f343","original_commit_id":"cb9692a9b576f216c71e0662711e2ca22234f343","user":{"login":"dmyers","id":207171,"avatar_url":"https://avatars.githubusercontent.com/u/207171?v=3","gravatar_id":"","url":"https://api.github.com/users/dmyers","html_url":"https://github.com/dmyers","followers_url":"https://api.github.com/users/dmyers/followers","following_url":"https://api.github.com/users/dmyers/following{/other_user}","gists_url":"https://api.github.com/users/dmyers/gists{/gist_id}","starred_url":"https://api.github.com/users/dmyers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmyers/subscriptions","organizations_url":"https://api.github.com/users/dmyers/orgs","repos_url":"https://api.github.com/users/dmyers/repos","events_url":"https://api.github.com/users/dmyers/events{/privacy}","received_events_url":"https://api.github.com/users/dmyers/received_events","type":"User","site_admin":false},"body":"I thought maybe for the driver pattern that all the drivers should have it?","created_at":"2015-06-22T16:44:21Z","updated_at":"2015-06-22T16:44:21Z","html_url":"https://github.com/mmanos/laravel-search/pull/28#discussion_r32955330","pull_request_url":"https://api.github.com/repos/mmanos/laravel-search/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/mmanos/laravel-search/pulls/comments/32955330"},"html":{"href":"https://github.com/mmanos/laravel-search/pull/28#discussion_r32955330"},"pull_request":{"href":"https://api.github.com/repos/mmanos/laravel-search/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/mmanos/laravel-search/pulls/28","id":36106743,"html_url":"https://github.com/mmanos/laravel-search/pull/28","diff_url":"https://github.com/mmanos/laravel-search/pull/28.diff","patch_url":"https://github.com/mmanos/laravel-search/pull/28.patch","issue_url":"https://api.github.com/repos/mmanos/laravel-search/issues/28","number":28,"state":"open","locked":false,"title":"Added location support to elasticsearch driver using using geopoint","user":{"login":"dmyers","id":207171,"avatar_url":"https://avatars.githubusercontent.com/u/207171?v=3","gravatar_id":"","url":"https://api.github.com/users/dmyers","html_url":"https://github.com/dmyers","followers_url":"https://api.github.com/users/dmyers/followers","following_url":"https://api.github.com/users/dmyers/following{/other_user}","gists_url":"https://api.github.com/users/dmyers/gists{/gist_id}","starred_url":"https://api.github.com/users/dmyers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmyers/subscriptions","organizations_url":"https://api.github.com/users/dmyers/orgs","repos_url":"https://api.github.com/users/dmyers/repos","events_url":"https://api.github.com/users/dmyers/events{/privacy}","received_events_url":"https://api.github.com/users/dmyers/received_events","type":"User","site_admin":false},"body":"Only thing I'm having trouble with is chaining `search()`, `where()`, and `whereLocation()` conditions at the same time.\r\n\r\nIn order to get this to work you have to create an index like so:\r\n\r\n```php\r\n$fields = [\r\n\t'name' => $name,\r\n\t'_geoloc' => [\r\n\t\t'lat' => $lat,\r\n\t\t'lon' => $long,\r\n\t],\r\n];\r\n\r\n\\Search::insert($id, $fields);\r\n```","created_at":"2015-05-24T18:54:13Z","updated_at":"2015-06-22T16:44:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eab798010fbd3cb24875a830081c1e5f4ae81fb5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mmanos/laravel-search/pulls/28/commits","review_comments_url":"https://api.github.com/repos/mmanos/laravel-search/pulls/28/comments","review_comment_url":"https://api.github.com/repos/mmanos/laravel-search/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mmanos/laravel-search/issues/28/comments","statuses_url":"https://api.github.com/repos/mmanos/laravel-search/statuses/cb9692a9b576f216c71e0662711e2ca22234f343","head":{"label":"dmyers:elasticsearch-location","ref":"elasticsearch-location","sha":"cb9692a9b576f216c71e0662711e2ca22234f343","user":{"login":"dmyers","id":207171,"avatar_url":"https://avatars.githubusercontent.com/u/207171?v=3","gravatar_id":"","url":"https://api.github.com/users/dmyers","html_url":"https://github.com/dmyers","followers_url":"https://api.github.com/users/dmyers/followers","following_url":"https://api.github.com/users/dmyers/following{/other_user}","gists_url":"https://api.github.com/users/dmyers/gists{/gist_id}","starred_url":"https://api.github.com/users/dmyers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmyers/subscriptions","organizations_url":"https://api.github.com/users/dmyers/orgs","repos_url":"https://api.github.com/users/dmyers/repos","events_url":"https://api.github.com/users/dmyers/events{/privacy}","received_events_url":"https://api.github.com/users/dmyers/received_events","type":"User","site_admin":false},"repo":{"id":33909917,"name":"laravel-search","full_name":"dmyers/laravel-search","owner":{"login":"dmyers","id":207171,"avatar_url":"https://avatars.githubusercontent.com/u/207171?v=3","gravatar_id":"","url":"https://api.github.com/users/dmyers","html_url":"https://github.com/dmyers","followers_url":"https://api.github.com/users/dmyers/followers","following_url":"https://api.github.com/users/dmyers/following{/other_user}","gists_url":"https://api.github.com/users/dmyers/gists{/gist_id}","starred_url":"https://api.github.com/users/dmyers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmyers/subscriptions","organizations_url":"https://api.github.com/users/dmyers/orgs","repos_url":"https://api.github.com/users/dmyers/repos","events_url":"https://api.github.com/users/dmyers/events{/privacy}","received_events_url":"https://api.github.com/users/dmyers/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dmyers/laravel-search","description":"A search package for Laravel 5.","fork":true,"url":"https://api.github.com/repos/dmyers/laravel-search","forks_url":"https://api.github.com/repos/dmyers/laravel-search/forks","keys_url":"https://api.github.com/repos/dmyers/laravel-search/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dmyers/laravel-search/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dmyers/laravel-search/teams","hooks_url":"https://api.github.com/repos/dmyers/laravel-search/hooks","issue_events_url":"https://api.github.com/repos/dmyers/laravel-search/issues/events{/number}","events_url":"https://api.github.com/repos/dmyers/laravel-search/events","assignees_url":"https://api.github.com/repos/dmyers/laravel-search/assignees{/user}","branches_url":"https://api.github.com/repos/dmyers/laravel-search/branches{/branch}","tags_url":"https://api.github.com/repos/dmyers/laravel-search/tags","blobs_url":"https://api.github.com/repos/dmyers/laravel-search/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dmyers/laravel-search/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dmyers/laravel-search/git/refs{/sha}","trees_url":"https://api.github.com/repos/dmyers/laravel-search/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dmyers/laravel-search/statuses/{sha}","languages_url":"https://api.github.com/repos/dmyers/laravel-search/languages","stargazers_url":"https://api.github.com/repos/dmyers/laravel-search/stargazers","contributors_url":"https://api.github.com/repos/dmyers/laravel-search/contributors","subscribers_url":"https://api.github.com/repos/dmyers/laravel-search/subscribers","subscription_url":"https://api.github.com/repos/dmyers/laravel-search/subscription","commits_url":"https://api.github.com/repos/dmyers/laravel-search/commits{/sha}","git_commits_url":"https://api.github.com/repos/dmyers/laravel-search/git/commits{/sha}","comments_url":"https://api.github.com/repos/dmyers/laravel-search/comments{/number}","issue_comment_url":"https://api.github.com/repos/dmyers/laravel-search/issues/comments{/number}","contents_url":"https://api.github.com/repos/dmyers/laravel-search/contents/{+path}","compare_url":"https://api.github.com/repos/dmyers/laravel-search/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dmyers/laravel-search/merges","archive_url":"https://api.github.com/repos/dmyers/laravel-search/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dmyers/laravel-search/downloads","issues_url":"https://api.github.com/repos/dmyers/laravel-search/issues{/number}","pulls_url":"https://api.github.com/repos/dmyers/laravel-search/pulls{/number}","milestones_url":"https://api.github.com/repos/dmyers/laravel-search/milestones{/number}","notifications_url":"https://api.github.com/repos/dmyers/laravel-search/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dmyers/laravel-search/labels{/name}","releases_url":"https://api.github.com/repos/dmyers/laravel-search/releases{/id}","created_at":"2015-04-14T04:02:19Z","updated_at":"2015-04-14T04:02:20Z","pushed_at":"2015-06-22T16:38:52Z","git_url":"git://github.com/dmyers/laravel-search.git","ssh_url":"git@github.com:dmyers/laravel-search.git","clone_url":"https://github.com/dmyers/laravel-search.git","svn_url":"https://github.com/dmyers/laravel-search","homepage":"","size":143,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mmanos:0.0","ref":"0.0","sha":"dbadc217aebcfc7a4a667cab6d4994140767618a","user":{"login":"mmanos","id":972055,"avatar_url":"https://avatars.githubusercontent.com/u/972055?v=3","gravatar_id":"","url":"https://api.github.com/users/mmanos","html_url":"https://github.com/mmanos","followers_url":"https://api.github.com/users/mmanos/followers","following_url":"https://api.github.com/users/mmanos/following{/other_user}","gists_url":"https://api.github.com/users/mmanos/gists{/gist_id}","starred_url":"https://api.github.com/users/mmanos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmanos/subscriptions","organizations_url":"https://api.github.com/users/mmanos/orgs","repos_url":"https://api.github.com/users/mmanos/repos","events_url":"https://api.github.com/users/mmanos/events{/privacy}","received_events_url":"https://api.github.com/users/mmanos/received_events","type":"User","site_admin":false},"repo":{"id":19645937,"name":"laravel-search","full_name":"mmanos/laravel-search","owner":{"login":"mmanos","id":972055,"avatar_url":"https://avatars.githubusercontent.com/u/972055?v=3","gravatar_id":"","url":"https://api.github.com/users/mmanos","html_url":"https://github.com/mmanos","followers_url":"https://api.github.com/users/mmanos/followers","following_url":"https://api.github.com/users/mmanos/following{/other_user}","gists_url":"https://api.github.com/users/mmanos/gists{/gist_id}","starred_url":"https://api.github.com/users/mmanos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmanos/subscriptions","organizations_url":"https://api.github.com/users/mmanos/orgs","repos_url":"https://api.github.com/users/mmanos/repos","events_url":"https://api.github.com/users/mmanos/events{/privacy}","received_events_url":"https://api.github.com/users/mmanos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mmanos/laravel-search","description":"A search package for Laravel 5.","fork":false,"url":"https://api.github.com/repos/mmanos/laravel-search","forks_url":"https://api.github.com/repos/mmanos/laravel-search/forks","keys_url":"https://api.github.com/repos/mmanos/laravel-search/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mmanos/laravel-search/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mmanos/laravel-search/teams","hooks_url":"https://api.github.com/repos/mmanos/laravel-search/hooks","issue_events_url":"https://api.github.com/repos/mmanos/laravel-search/issues/events{/number}","events_url":"https://api.github.com/repos/mmanos/laravel-search/events","assignees_url":"https://api.github.com/repos/mmanos/laravel-search/assignees{/user}","branches_url":"https://api.github.com/repos/mmanos/laravel-search/branches{/branch}","tags_url":"https://api.github.com/repos/mmanos/laravel-search/tags","blobs_url":"https://api.github.com/repos/mmanos/laravel-search/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mmanos/laravel-search/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mmanos/laravel-search/git/refs{/sha}","trees_url":"https://api.github.com/repos/mmanos/laravel-search/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mmanos/laravel-search/statuses/{sha}","languages_url":"https://api.github.com/repos/mmanos/laravel-search/languages","stargazers_url":"https://api.github.com/repos/mmanos/laravel-search/stargazers","contributors_url":"https://api.github.com/repos/mmanos/laravel-search/contributors","subscribers_url":"https://api.github.com/repos/mmanos/laravel-search/subscribers","subscription_url":"https://api.github.com/repos/mmanos/laravel-search/subscription","commits_url":"https://api.github.com/repos/mmanos/laravel-search/commits{/sha}","git_commits_url":"https://api.github.com/repos/mmanos/laravel-search/git/commits{/sha}","comments_url":"https://api.github.com/repos/mmanos/laravel-search/comments{/number}","issue_comment_url":"https://api.github.com/repos/mmanos/laravel-search/issues/comments{/number}","contents_url":"https://api.github.com/repos/mmanos/laravel-search/contents/{+path}","compare_url":"https://api.github.com/repos/mmanos/laravel-search/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mmanos/laravel-search/merges","archive_url":"https://api.github.com/repos/mmanos/laravel-search/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mmanos/laravel-search/downloads","issues_url":"https://api.github.com/repos/mmanos/laravel-search/issues{/number}","pulls_url":"https://api.github.com/repos/mmanos/laravel-search/pulls{/number}","milestones_url":"https://api.github.com/repos/mmanos/laravel-search/milestones{/number}","notifications_url":"https://api.github.com/repos/mmanos/laravel-search/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mmanos/laravel-search/labels{/name}","releases_url":"https://api.github.com/repos/mmanos/laravel-search/releases{/id}","created_at":"2014-05-10T16:19:27Z","updated_at":"2015-06-14T01:04:36Z","pushed_at":"2015-06-22T16:32:59Z","git_url":"git://github.com/mmanos/laravel-search.git","ssh_url":"git@github.com:mmanos/laravel-search.git","clone_url":"https://github.com/mmanos/laravel-search.git","svn_url":"https://github.com/mmanos/laravel-search","homepage":"","size":327,"stargazers_count":95,"watchers_count":95,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":15,"forks":21,"open_issues":15,"watchers":95,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mmanos/laravel-search/pulls/28"},"html":{"href":"https://github.com/mmanos/laravel-search/pull/28"},"issue":{"href":"https://api.github.com/repos/mmanos/laravel-search/issues/28"},"comments":{"href":"https://api.github.com/repos/mmanos/laravel-search/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/mmanos/laravel-search/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/mmanos/laravel-search/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mmanos/laravel-search/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/mmanos/laravel-search/statuses/cb9692a9b576f216c71e0662711e2ca22234f343"}}}}