{"action":"created","issue":{"url":"https://api.github.com/repos/mrphlip/lrrbot/issues/210","repository_url":"https://api.github.com/repos/mrphlip/lrrbot","labels_url":"https://api.github.com/repos/mrphlip/lrrbot/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/mrphlip/lrrbot/issues/210/comments","events_url":"https://api.github.com/repos/mrphlip/lrrbot/issues/210/events","html_url":"https://github.com/mrphlip/lrrbot/issues/210","id":158107101,"number":210,"title":"Make quote context searchable","user":{"login":"mrphlip","id":734414,"avatar_url":"https://avatars.githubusercontent.com/u/734414?v=3","gravatar_id":"","url":"https://api.github.com/users/mrphlip","html_url":"https://github.com/mrphlip","followers_url":"https://api.github.com/users/mrphlip/followers","following_url":"https://api.github.com/users/mrphlip/following{/other_user}","gists_url":"https://api.github.com/users/mrphlip/gists{/gist_id}","starred_url":"https://api.github.com/users/mrphlip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrphlip/subscriptions","organizations_url":"https://api.github.com/users/mrphlip/orgs","repos_url":"https://api.github.com/users/mrphlip/repos","events_url":"https://api.github.com/users/mrphlip/events{/privacy}","received_events_url":"https://api.github.com/users/mrphlip/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-06-02T10:20:51Z","updated_at":"2016-11-25T15:32:29Z","closed_at":null,"body":"As suggested in-chat by dialMforMara, the `context` for quotes should be searchable.\n\nIt probably should just be treated the same as the actual quote body. Fulltext-index it, and make the normal `!findquote` command (and the \"Search quotes\" function of the website) search where either `quote` or `context` contains the search term.\n\n(I think making it so `!findquote foo bar` can find a quote where `quote` contains \"foo\" and `context` contains \"bar\" would be a bit overcomplicated, so I wouldn't be worried about that. Just (pseudocode) `quote contains 'foo bar' or context contains 'foo bar'`.)\n\n((Unless it's possible to make a single full-text index over _both_ `quote` and `context`? I don't know enough postgresql to know if that's a thing...))\n"},"comment":{"url":"https://api.github.com/repos/mrphlip/lrrbot/issues/comments/262980076","html_url":"https://github.com/mrphlip/lrrbot/issues/210#issuecomment-262980076","issue_url":"https://api.github.com/repos/mrphlip/lrrbot/issues/210","id":262980076,"user":{"login":"danieljcrabtree","id":5563424,"avatar_url":"https://avatars.githubusercontent.com/u/5563424?v=3","gravatar_id":"","url":"https://api.github.com/users/danieljcrabtree","html_url":"https://github.com/danieljcrabtree","followers_url":"https://api.github.com/users/danieljcrabtree/followers","following_url":"https://api.github.com/users/danieljcrabtree/following{/other_user}","gists_url":"https://api.github.com/users/danieljcrabtree/gists{/gist_id}","starred_url":"https://api.github.com/users/danieljcrabtree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieljcrabtree/subscriptions","organizations_url":"https://api.github.com/users/danieljcrabtree/orgs","repos_url":"https://api.github.com/users/danieljcrabtree/repos","events_url":"https://api.github.com/users/danieljcrabtree/events{/privacy}","received_events_url":"https://api.github.com/users/danieljcrabtree/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T15:32:29Z","updated_at":"2016-11-25T15:32:29Z","body":"@rebelliousuno, did you imagine being able to chain switches together?\r\n\r\ne.g. `!findquote by (author) about (quote body)`\r\n\r\nOr did you see them working in the same way as the `game` and `show` switches on the `!quote` command?\r\n\r\n@andreasots, I don't have a lot of experience with context-free grammars so pardon me if I'm just confused. There doesn't seem to be a way to terminate these rules:\r\n\r\n```\r\ndisjunction ::= conjunction '|' disjunction\r\nconjunction ::= expr conjunction\r\n```\r\n"}}
{"actor":{"display_login":"danieljcrabtree"}}