{"action":"opened","issue":{"url":"https://api.github.com/repos/LibreCat/LibreCat/issues/427","repository_url":"https://api.github.com/repos/LibreCat/LibreCat","labels_url":"https://api.github.com/repos/LibreCat/LibreCat/issues/427/labels{/name}","comments_url":"https://api.github.com/repos/LibreCat/LibreCat/issues/427/comments","events_url":"https://api.github.com/repos/LibreCat/LibreCat/issues/427/events","html_url":"https://github.com/LibreCat/LibreCat/issues/427","id":307931901,"number":427,"title":"Search for departments, projects, etc. by name","user":{"login":"feldi88","id":6943048,"avatar_url":"https://avatars2.githubusercontent.com/u/6943048?v=4","gravatar_id":"","url":"https://api.github.com/users/feldi88","html_url":"https://github.com/feldi88","followers_url":"https://api.github.com/users/feldi88/followers","following_url":"https://api.github.com/users/feldi88/following{/other_user}","gists_url":"https://api.github.com/users/feldi88/gists{/gist_id}","starred_url":"https://api.github.com/users/feldi88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feldi88/subscriptions","organizations_url":"https://api.github.com/users/feldi88/orgs","repos_url":"https://api.github.com/users/feldi88/repos","events_url":"https://api.github.com/users/feldi88/events{/privacy}","received_events_url":"https://api.github.com/users/feldi88/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-23T07:52:38Z","updated_at":"2018-03-23T07:52:38Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"In the current implementation/configuration, you can search for some properties by their names, and for others only by their id. For example, you can search for `person=\"Einstein, Albert\"` or `person=1234`, but only for `department=9998` and not something like `department=\"Department of Mathematics -> Analysis Group\"`.\r\n\r\nThe reason for this behaviour is in the configuration of the elasticsearch cql_mapping:\r\n\r\nSee\r\nhttps://github.com/LibreCat/LibreCat/blob/92e7eac8a1fc2fda558524d6bfc1068bdf2d4b99/config/store.yml#L477-L484\r\n\r\nand \r\n\r\nhttps://github.com/LibreCat/LibreCat/blob/92e7eac8a1fc2fda558524d6bfc1068bdf2d4b99/config/store.yml#L493-L503\r\n\r\nor \r\n\r\nhttps://github.com/LibreCat/LibreCat/blob/92e7eac8a1fc2fda558524d6bfc1068bdf2d4b99/config/store.yml#L280-L287\r\n\r\nas examples.\r\n\r\nFor a user (and especially a non-technical affine user) it is very difficult or even impossible to use this search, since she has to do the mapping from department/project name to the corresponding id on her own. Additionally, if you embed or link some search result with department/project it is not really comprehensible why for example an department=9998 is used there.\r\n\r\nFrom my point of view, it is very easy to improve by including also names, etc. in the corresponding cql_mapping. Or are there any reasons for not extending it which I am not aware of?\r\n\r\nLet me know what you are thinking about it. If you agree with me, I'm happy to provide a pull request for this."}}
{"actor":{"display_login":"feldi88"}}