{"action":"created","issue":{"url":"https://api.github.com/repos/RedisLabsModules/RediSearch/issues/356","repository_url":"https://api.github.com/repos/RedisLabsModules/RediSearch","labels_url":"https://api.github.com/repos/RedisLabsModules/RediSearch/issues/356/labels{/name}","comments_url":"https://api.github.com/repos/RedisLabsModules/RediSearch/issues/356/comments","events_url":"https://api.github.com/repos/RedisLabsModules/RediSearch/issues/356/events","html_url":"https://github.com/RedisLabsModules/RediSearch/issues/356","id":330925146,"node_id":"MDU6SXNzdWUzMzA5MjUxNDY=","number":356,"title":"tags with \":\" characters are not matched - escaping issues?","user":{"login":"mmasouras","id":4714502,"node_id":"MDQ6VXNlcjQ3MTQ1MDI=","avatar_url":"https://avatars2.githubusercontent.com/u/4714502?v=4","gravatar_id":"","url":"https://api.github.com/users/mmasouras","html_url":"https://github.com/mmasouras","followers_url":"https://api.github.com/users/mmasouras/followers","following_url":"https://api.github.com/users/mmasouras/following{/other_user}","gists_url":"https://api.github.com/users/mmasouras/gists{/gist_id}","starred_url":"https://api.github.com/users/mmasouras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmasouras/subscriptions","organizations_url":"https://api.github.com/users/mmasouras/orgs","repos_url":"https://api.github.com/users/mmasouras/repos","events_url":"https://api.github.com/users/mmasouras/events{/privacy}","received_events_url":"https://api.github.com/users/mmasouras/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-06-09T22:57:38Z","updated_at":"2018-06-13T21:29:29Z","closed_at":null,"author_association":"NONE","body":"I use \":\" characters in tags (the tags themselves are redis keys) and RediSearch seems to fail to find them when I query with the tag. \r\n\r\nHere's an example that reproduces the problem:\r\n\r\n```\r\n127.0.0.1:6379> FT.CREATE idx SCHEMA title TEXT tags TAG\r\nOK\r\n127.0.0.1:6379> HGETALL foo\r\n1) \"title\"\r\n2) \"blah\"\r\n3) \"tags\"\r\n4) \"a:b,c:d\"\r\n127.0.0.1:6379> FT.ADDHASH idx foo 1 REPLACE\r\nOK\r\n127.0.0.1:6379> FT.SEARCH idx blah\r\n1) (integer) 1\r\n2) \"foo\"\r\n3) 1) \"title\"\r\n   2) \"blah\"\r\n   3) \"tags\"\r\n   4) \"a:b,c:d\"\r\n127.0.0.1:6379> FT.SEARCH il1 @tags:{c\\:d}\r\n1) (integer) 0\r\n```"},"comment":{"url":"https://api.github.com/repos/RedisLabsModules/RediSearch/issues/comments/397093695","html_url":"https://github.com/RedisLabsModules/RediSearch/issues/356#issuecomment-397093695","issue_url":"https://api.github.com/repos/RedisLabsModules/RediSearch/issues/356","id":397093695,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzA5MzY5NQ==","user":{"login":"mnunberg","id":436049,"node_id":"MDQ6VXNlcjQzNjA0OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/436049?v=4","gravatar_id":"","url":"https://api.github.com/users/mnunberg","html_url":"https://github.com/mnunberg","followers_url":"https://api.github.com/users/mnunberg/followers","following_url":"https://api.github.com/users/mnunberg/following{/other_user}","gists_url":"https://api.github.com/users/mnunberg/gists{/gist_id}","starred_url":"https://api.github.com/users/mnunberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnunberg/subscriptions","organizations_url":"https://api.github.com/users/mnunberg/orgs","repos_url":"https://api.github.com/users/mnunberg/repos","events_url":"https://api.github.com/users/mnunberg/events{/privacy}","received_events_url":"https://api.github.com/users/mnunberg/received_events","type":"User","site_admin":false},"created_at":"2018-06-13T21:29:29Z","updated_at":"2018-06-13T21:29:29Z","author_association":"COLLABORATOR","body":"re mem savings, tag indexes are implemented in a fashion somewhat similar to actual search indexes. Basically, the space savings are proportional to the uniqueness of tags rather than their length. If you have 1M documents with a tag `veryverygverylong` and 1M documents with a tag `z`, you will not gain any savings. Most of the overhead is in the actual existence of a specific tag rather than its actual length (of course, if you have 1M tags, and each one is several K, you might start seeing the difference; however tag lengths are capped at 10k anyway)."}}
{"actor":{"display_login":"mnunberg"}}