{"action":"created","issue":{"url":"https://api.github.com/repos/scalia/sphinxsearch/issues/47","labels_url":"https://api.github.com/repos/scalia/sphinxsearch/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/scalia/sphinxsearch/issues/47/comments","events_url":"https://api.github.com/repos/scalia/sphinxsearch/issues/47/events","html_url":"https://github.com/scalia/sphinxsearch/issues/47","id":76370811,"number":47,"title":"passing true in get() causes error","user":{"login":"hummwv","id":64875,"avatar_url":"https://avatars.githubusercontent.com/u/64875?v=3","gravatar_id":"","url":"https://api.github.com/users/hummwv","html_url":"https://github.com/hummwv","followers_url":"https://api.github.com/users/hummwv/followers","following_url":"https://api.github.com/users/hummwv/following{/other_user}","gists_url":"https://api.github.com/users/hummwv/gists{/gist_id}","starred_url":"https://api.github.com/users/hummwv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hummwv/subscriptions","organizations_url":"https://api.github.com/users/hummwv/orgs","repos_url":"https://api.github.com/users/hummwv/repos","events_url":"https://api.github.com/users/hummwv/events{/privacy}","received_events_url":"https://api.github.com/users/hummwv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-14T14:12:33Z","updated_at":"2015-05-18T07:21:23Z","closed_at":null,"body":"This code works fine except results not sorted at all: \r\n```php\r\n$results = SphinxSearch::search($search, $indexName)\r\n\t->setFieldWeights(\r\n\t\t$weights\r\n\t)\r\n\t->setMatchMode(\\Sphinx\\SphinxClient::SPH_MATCH_EXTENDED)\r\n\t->setSortMode(\\Sphinx\\SphinxClient::SPH_SORT_EXTENDED, \"@weight DESC\")\r\n\t->get();\r\n```\r\nBut if I'm making \r\n```php\r\n\t->get(true);\r\n```\r\nthen I'm getting error `Trying to get property of non-object` in `laravel.site/vendor/scalia/sphinxsearch/src/Scalia/SphinxSearch/SphinxSearch.php` in line 250:\r\n```php\r\n        if ( $result_item->id == $id )\r\n```\r\n(this is function `getResultKeyByID($id, $result)`)"},"comment":{"url":"https://api.github.com/repos/scalia/sphinxsearch/issues/comments/102946809","html_url":"https://github.com/scalia/sphinxsearch/issues/47#issuecomment-102946809","issue_url":"https://api.github.com/repos/scalia/sphinxsearch/issues/47","id":102946809,"user":{"login":"absentdream","id":3314310,"avatar_url":"https://avatars.githubusercontent.com/u/3314310?v=3","gravatar_id":"","url":"https://api.github.com/users/absentdream","html_url":"https://github.com/absentdream","followers_url":"https://api.github.com/users/absentdream/followers","following_url":"https://api.github.com/users/absentdream/following{/other_user}","gists_url":"https://api.github.com/users/absentdream/gists{/gist_id}","starred_url":"https://api.github.com/users/absentdream/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/absentdream/subscriptions","organizations_url":"https://api.github.com/users/absentdream/orgs","repos_url":"https://api.github.com/users/absentdream/repos","events_url":"https://api.github.com/users/absentdream/events{/privacy}","received_events_url":"https://api.github.com/users/absentdream/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T07:21:23Z","updated_at":"2015-05-18T07:21:23Z","body":"Then use a group_concat to string all the category names I will see if I can find an example... but get it working with title only first and build up.. :)"}}