{"action":"created","issue":{"url":"https://api.github.com/repos/taw/magic-search-engine/issues/72","repository_url":"https://api.github.com/repos/taw/magic-search-engine","labels_url":"https://api.github.com/repos/taw/magic-search-engine/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/taw/magic-search-engine/issues/72/comments","events_url":"https://api.github.com/repos/taw/magic-search-engine/issues/72/events","html_url":"https://github.com/taw/magic-search-engine/issues/72","id":295898013,"number":72,"title":"Make any: operator amazing","user":{"login":"taw","id":17444,"avatar_url":"https://avatars1.githubusercontent.com/u/17444?v=4","gravatar_id":"","url":"https://api.github.com/users/taw","html_url":"https://github.com/taw","followers_url":"https://api.github.com/users/taw/followers","following_url":"https://api.github.com/users/taw/following{/other_user}","gists_url":"https://api.github.com/users/taw/gists{/gist_id}","starred_url":"https://api.github.com/users/taw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taw/subscriptions","organizations_url":"https://api.github.com/users/taw/orgs","repos_url":"https://api.github.com/users/taw/repos","events_url":"https://api.github.com/users/taw/events{/privacy}","received_events_url":"https://api.github.com/users/taw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-09T14:58:00Z","updated_at":"2018-02-09T15:23:47Z","closed_at":null,"author_association":"OWNER","body":"So I added any: operator which can search for whatever you want:\r\n* [`any:\"Jaya Ballard\" any:sorcery`](http://mtg.wtf/card?q=any%3A%22Jaya+Ballard%22+any%3Asorcery) - one is artifact mentioning \"sorcery\" in Oracle text\r\n* [`any:\"Wayne England\" any:mythic`](http://mtg.wtf/card?q=any%3A%22Wayne+England%22+any%3Amythic)\r\n* [`any:Gideon any:creature`](http://mtg.wtf/card?q=any%3AGideon+any%3Acreature)\r\n* [`any:\"Décomposition abrupte\"`](http://mtg.wtf/card?q=any%3A%22D%C3%A9composition+abrupte%22)\r\n* [`any:green any:dragon`](http://mtg.wtf/card?q=any%3Agreen+any%3Adragon) - also includes some fairly loose results\r\n\r\nThe idea is that it could actually become the default search term so `blue \"win the game\" enchantment` is translated into `any:blue any:\"win the game\" any:enchantment`, which is basically `c>=b o:\"win the game\" t:enchantment` by current system. Any explicit operators would still work, and there are some finer points to consider.\r\n\r\nTodo list:\r\n\r\n- [ ] make it cover everything it sensibly can\r\n- [ ] maybe don't overdo it (like is `2/4 ISD Spider` going too far?), trying a few questionable things is the only way to know for sure\r\n- [ ] how should it handle spelling correction? (currently only name search does it)\r\n- [ ] maybe rexgep search\r\n- [ ] there are a few things like watermarks which currently don't work too well (due to Unstable silly watermarks names)\r\n- [ ] make it performant - right now it just blindly tries everything\r\n- [ ] maybe add some kind of \"sort by relevance\", `any:Gideon` matched `t:Gideon` and `ft:Gideon` cards, and it feels like the type or name is much stronger match.\r\n- [ ] maybe display more information depending on query - right now if hit is German name, people will have no idea why card was even displayed, as that's not displayed in default search results. This applies to other queries as well.\r\n- [ ] some queries need to be tighten, like `any:red` matches `ft:hired`, which is counterintuitive\r\n- [ ] Urza, Academy Headmaster will currently match almost every nontrivial query. Should it?\r\n- [x] just add `foreign:` operator for any foreign name matches\r\n\r\nOf course it could turn out that the whole idea is misguided."},"comment":{"url":"https://api.github.com/repos/taw/magic-search-engine/issues/comments/364464201","html_url":"https://github.com/taw/magic-search-engine/issues/72#issuecomment-364464201","issue_url":"https://api.github.com/repos/taw/magic-search-engine/issues/72","id":364464201,"user":{"login":"taw","id":17444,"avatar_url":"https://avatars1.githubusercontent.com/u/17444?v=4","gravatar_id":"","url":"https://api.github.com/users/taw","html_url":"https://github.com/taw","followers_url":"https://api.github.com/users/taw/followers","following_url":"https://api.github.com/users/taw/following{/other_user}","gists_url":"https://api.github.com/users/taw/gists{/gist_id}","starred_url":"https://api.github.com/users/taw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taw/subscriptions","organizations_url":"https://api.github.com/users/taw/orgs","repos_url":"https://api.github.com/users/taw/repos","events_url":"https://api.github.com/users/taw/events{/privacy}","received_events_url":"https://api.github.com/users/taw/received_events","type":"User","site_admin":false},"created_at":"2018-02-09T15:23:47Z","updated_at":"2018-02-09T15:23:47Z","author_association":"OWNER","body":"`foreign:` operator is sort of a side thing, but it works now."}}
{"actor":{"display_login":"taw"}}