{"action":"created","issue":{"url":"https://api.github.com/repos/silverstripe-labs/silverstripe-fulltextsearch/issues/110","repository_url":"https://api.github.com/repos/silverstripe-labs/silverstripe-fulltextsearch","labels_url":"https://api.github.com/repos/silverstripe-labs/silverstripe-fulltextsearch/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/silverstripe-labs/silverstripe-fulltextsearch/issues/110/comments","events_url":"https://api.github.com/repos/silverstripe-labs/silverstripe-fulltextsearch/issues/110/events","html_url":"https://github.com/silverstripe-labs/silverstripe-fulltextsearch/issues/110","id":142498100,"number":110,"title":"Sold won't search Live web pages","user":{"login":"torleif","id":67215,"avatar_url":"https://avatars.githubusercontent.com/u/67215?v=3","gravatar_id":"","url":"https://api.github.com/users/torleif","html_url":"https://github.com/torleif","followers_url":"https://api.github.com/users/torleif/followers","following_url":"https://api.github.com/users/torleif/following{/other_user}","gists_url":"https://api.github.com/users/torleif/gists{/gist_id}","starred_url":"https://api.github.com/users/torleif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torleif/subscriptions","organizations_url":"https://api.github.com/users/torleif/orgs","repos_url":"https://api.github.com/users/torleif/repos","events_url":"https://api.github.com/users/torleif/events{/privacy}","received_events_url":"https://api.github.com/users/torleif/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-21T23:18:46Z","updated_at":"2016-03-22T00:58:06Z","closed_at":"2016-03-22T00:58:06Z","body":"It seems the `SearchVariantVersioned` is causing some weird issues returning only non published pages. I noticed while debugging in SolrIndex.php on line 662 the $fq is returning one parameter with the value:\r\n\r\n```\"+(_versionedstage:\"Live\" (*:* -_versionedstage:[* TO *]))\", ```\r\n\r\nThis causes Live pages to not be shown. I can fix this by overriding getFiltersComponent() function by adding the following value to the array:\r\n\r\n```php\r\n\tpublic function getFiltersComponent(SearchQuery $searchQuery) {\r\n\t\treturn array_merge(\r\n\t\t\tparent::getFiltersComponent($searchQuery),\r\n\t\t\tarray(' -(ClassName:ProgrammeInformationMirrorPage)', ' -(ClassName:RedirectorPage)', \"+(_versionedstage:\\\"Live\\\" )\")\r\n\t\t);\r\n\t}\r\n```\r\n\r\nIt's by luck Solr is picking up on the last array value, and not the first. "},"comment":{"url":"https://api.github.com/repos/silverstripe-labs/silverstripe-fulltextsearch/issues/comments/199566766","html_url":"https://github.com/silverstripe-labs/silverstripe-fulltextsearch/issues/110#issuecomment-199566766","issue_url":"https://api.github.com/repos/silverstripe-labs/silverstripe-fulltextsearch/issues/110","id":199566766,"user":{"login":"torleif","id":67215,"avatar_url":"https://avatars.githubusercontent.com/u/67215?v=3","gravatar_id":"","url":"https://api.github.com/users/torleif","html_url":"https://github.com/torleif","followers_url":"https://api.github.com/users/torleif/followers","following_url":"https://api.github.com/users/torleif/following{/other_user}","gists_url":"https://api.github.com/users/torleif/gists{/gist_id}","starred_url":"https://api.github.com/users/torleif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torleif/subscriptions","organizations_url":"https://api.github.com/users/torleif/orgs","repos_url":"https://api.github.com/users/torleif/repos","events_url":"https://api.github.com/users/torleif/events{/privacy}","received_events_url":"https://api.github.com/users/torleif/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T00:58:06Z","updated_at":"2016-03-22T00:58:06Z","body":"Turns out this was an issue with my search query, the results were there they were just at the bottom. I made a boost query that put typically put pages on the top of results:\r\n\r\nmysite/_conf/config.yml\r\n\r\n```\r\n CwpSearchEngine:\r\n   spellcheck_options:\r\n     bq: 'Page IN ClassHierarchy'\r\n     defType: dismax\r\n```"}}