{"action":"created","issue":{"url":"https://api.github.com/repos/tsgrp/hpi/issues/159","labels_url":"https://api.github.com/repos/tsgrp/hpi/issues/159/labels{/name}","comments_url":"https://api.github.com/repos/tsgrp/hpi/issues/159/comments","events_url":"https://api.github.com/repos/tsgrp/hpi/issues/159/events","html_url":"https://github.com/tsgrp/hpi/issues/159","id":27299076,"number":159,"title":"Faceted Search for Alfresco 4.2","user":{"login":"benallenallen","id":4850976,"avatar_url":"https://avatars.githubusercontent.com/u/4850976?v=3","gravatar_id":"","url":"https://api.github.com/users/benallenallen","html_url":"https://github.com/benallenallen","followers_url":"https://api.github.com/users/benallenallen/followers","following_url":"https://api.github.com/users/benallenallen/following{/other_user}","gists_url":"https://api.github.com/users/benallenallen/gists{/gist_id}","starred_url":"https://api.github.com/users/benallenallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benallenallen/subscriptions","organizations_url":"https://api.github.com/users/benallenallen/orgs","repos_url":"https://api.github.com/users/benallenallen/repos","events_url":"https://api.github.com/users/benallenallen/events{/privacy}","received_events_url":"https://api.github.com/users/benallenallen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tsgrp/hpi/labels/Alfresco","name":"Alfresco","color":"009800"},{"url":"https://api.github.com/repos/tsgrp/hpi/labels/High+Priority","name":"High Priority","color":"fbca04"},{"url":"https://api.github.com/repos/tsgrp/hpi/labels/issue","name":"issue","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"b-k-white","id":8796489,"avatar_url":"https://avatars.githubusercontent.com/u/8796489?v=3","gravatar_id":"","url":"https://api.github.com/users/b-k-white","html_url":"https://github.com/b-k-white","followers_url":"https://api.github.com/users/b-k-white/followers","following_url":"https://api.github.com/users/b-k-white/following{/other_user}","gists_url":"https://api.github.com/users/b-k-white/gists{/gist_id}","starred_url":"https://api.github.com/users/b-k-white/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b-k-white/subscriptions","organizations_url":"https://api.github.com/users/b-k-white/orgs","repos_url":"https://api.github.com/users/b-k-white/repos","events_url":"https://api.github.com/users/b-k-white/events{/privacy}","received_events_url":"https://api.github.com/users/b-k-white/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/tsgrp/hpi/milestones/6","labels_url":"https://api.github.com/repos/tsgrp/hpi/milestones/6/labels","id":732147,"number":6,"title":"HPI 2.3","description":"Items tagged with the HPI 2.3 milestone must be fixed for the HPI 2.3 release.","creator":{"login":"gsteimer","id":1377228,"avatar_url":"https://avatars.githubusercontent.com/u/1377228?v=3","gravatar_id":"","url":"https://api.github.com/users/gsteimer","html_url":"https://github.com/gsteimer","followers_url":"https://api.github.com/users/gsteimer/followers","following_url":"https://api.github.com/users/gsteimer/following{/other_user}","gists_url":"https://api.github.com/users/gsteimer/gists{/gist_id}","starred_url":"https://api.github.com/users/gsteimer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsteimer/subscriptions","organizations_url":"https://api.github.com/users/gsteimer/orgs","repos_url":"https://api.github.com/users/gsteimer/repos","events_url":"https://api.github.com/users/gsteimer/events{/privacy}","received_events_url":"https://api.github.com/users/gsteimer/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":90,"state":"open","created_at":"2014-07-25T14:11:15Z","updated_at":"2015-01-08T19:56:59Z","due_on":null,"closed_at":null},"comments":19,"created_at":"2014-02-10T20:49:34Z","updated_at":"2015-01-08T20:19:19Z","closed_at":null,"body":"Currently faced search only works for Alfresco 4.1.x. It would appear the issue is that in AbstractAlfrescoEmbQueryImpl#executeQuery line 494 the result set type that is returned is not the correct type to do the faceting, so it is just skipping any faceting. According to Max and Ray, something was changed in the 4.2 API with the way that Solr searches are executed and faceted, so this is probably why the below code is never run.\r\n\r\n```java\r\nif( results instanceof SolrJSONResultSet )\r\n```\r\n\r\nFrom quickly looking at how the faceting works, it would appear that as soon as a trac is selected from the search screen, a 'dummy' query is sent to the ocQuery endpoint that doesn't have all of the correct parameters to do an actual search (it only seems to have the facet info) so it errors out and is swallowed. If this how facets were designed to work we need to change it to not execute an invalid search every time someone clicks on the search tab.\r\n\r\nWe also need to fix the bad exception handling in this entire method. If anything goes wrong, the stack trace that is printed is not at all helpful. "},"comment":{"url":"https://api.github.com/repos/tsgrp/hpi/issues/comments/69242258","html_url":"https://github.com/tsgrp/hpi/issues/159#issuecomment-69242258","issue_url":"https://api.github.com/repos/tsgrp/hpi/issues/159","id":69242258,"user":{"login":"gsteimer","id":1377228,"avatar_url":"https://avatars.githubusercontent.com/u/1377228?v=3","gravatar_id":"","url":"https://api.github.com/users/gsteimer","html_url":"https://github.com/gsteimer","followers_url":"https://api.github.com/users/gsteimer/followers","following_url":"https://api.github.com/users/gsteimer/following{/other_user}","gists_url":"https://api.github.com/users/gsteimer/gists{/gist_id}","starred_url":"https://api.github.com/users/gsteimer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsteimer/subscriptions","organizations_url":"https://api.github.com/users/gsteimer/orgs","repos_url":"https://api.github.com/users/gsteimer/repos","events_url":"https://api.github.com/users/gsteimer/events{/privacy}","received_events_url":"https://api.github.com/users/gsteimer/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T20:19:19Z","updated_at":"2015-01-08T20:19:19Z","body":"@b-k-white - let's talk through this.  I'm thinking we can close this one and open a new issue."}}