{"action":"created","issue":{"url":"https://api.github.com/repos/GCRC/nunaliit/issues/291","labels_url":"https://api.github.com/repos/GCRC/nunaliit/issues/291/labels{/name}","comments_url":"https://api.github.com/repos/GCRC/nunaliit/issues/291/comments","events_url":"https://api.github.com/repos/GCRC/nunaliit/issues/291/events","html_url":"https://github.com/GCRC/nunaliit/issues/291","id":54092113,"number":291,"title":"Constrain text search and test look-ahead","user":{"login":"jpfiset","id":530034,"avatar_url":"https://avatars.githubusercontent.com/u/530034?v=3","gravatar_id":"","url":"https://api.github.com/users/jpfiset","html_url":"https://github.com/jpfiset","followers_url":"https://api.github.com/users/jpfiset/followers","following_url":"https://api.github.com/users/jpfiset/following{/other_user}","gists_url":"https://api.github.com/users/jpfiset/gists{/gist_id}","starred_url":"https://api.github.com/users/jpfiset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpfiset/subscriptions","organizations_url":"https://api.github.com/users/jpfiset/orgs","repos_url":"https://api.github.com/users/jpfiset/repos","events_url":"https://api.github.com/users/jpfiset/events{/privacy}","received_events_url":"https://api.github.com/users/jpfiset/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GCRC/nunaliit/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"jpfiset","id":530034,"avatar_url":"https://avatars.githubusercontent.com/u/530034?v=3","gravatar_id":"","url":"https://api.github.com/users/jpfiset","html_url":"https://github.com/jpfiset","followers_url":"https://api.github.com/users/jpfiset/followers","following_url":"https://api.github.com/users/jpfiset/following{/other_user}","gists_url":"https://api.github.com/users/jpfiset/gists{/gist_id}","starred_url":"https://api.github.com/users/jpfiset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpfiset/subscriptions","organizations_url":"https://api.github.com/users/jpfiset/orgs","repos_url":"https://api.github.com/users/jpfiset/repos","events_url":"https://api.github.com/users/jpfiset/events{/privacy}","received_events_url":"https://api.github.com/users/jpfiset/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/GCRC/nunaliit/milestones/12","html_url":"https://github.com/GCRC/nunaliit/milestones/2.2.4","labels_url":"https://api.github.com/repos/GCRC/nunaliit/milestones/12/labels","id":882131,"number":12,"title":"2.2.4","description":"","creator":{"login":"jpfiset","id":530034,"avatar_url":"https://avatars.githubusercontent.com/u/530034?v=3","gravatar_id":"","url":"https://api.github.com/users/jpfiset","html_url":"https://github.com/jpfiset","followers_url":"https://api.github.com/users/jpfiset/followers","following_url":"https://api.github.com/users/jpfiset/following{/other_user}","gists_url":"https://api.github.com/users/jpfiset/gists{/gist_id}","starred_url":"https://api.github.com/users/jpfiset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpfiset/subscriptions","organizations_url":"https://api.github.com/users/jpfiset/orgs","repos_url":"https://api.github.com/users/jpfiset/repos","events_url":"https://api.github.com/users/jpfiset/events{/privacy}","received_events_url":"https://api.github.com/users/jpfiset/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":21,"state":"open","created_at":"2014-11-27T02:13:15Z","updated_at":"2015-03-05T19:17:01Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-01-12T18:57:43Z","updated_at":"2015-03-09T19:16:23Z","closed_at":null,"body":"There is a need to constrain search results to a subset of documents that meet a certain criteria.\r\n\r\nThe first use case for this feature is the ability to constrain search results to documents associated with a module.\r\n\r\nThe implementation is to contrain documents based on a layer identifier."},"comment":{"url":"https://api.github.com/repos/GCRC/nunaliit/issues/comments/77922323","html_url":"https://github.com/GCRC/nunaliit/issues/291#issuecomment-77922323","issue_url":"https://api.github.com/repos/GCRC/nunaliit/issues/291","id":77922323,"user":{"login":"jpfiset","id":530034,"avatar_url":"https://avatars.githubusercontent.com/u/530034?v=3","gravatar_id":"","url":"https://api.github.com/users/jpfiset","html_url":"https://github.com/jpfiset","followers_url":"https://api.github.com/users/jpfiset/followers","following_url":"https://api.github.com/users/jpfiset/following{/other_user}","gists_url":"https://api.github.com/users/jpfiset/gists{/gist_id}","starred_url":"https://api.github.com/users/jpfiset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpfiset/subscriptions","organizations_url":"https://api.github.com/users/jpfiset/orgs","repos_url":"https://api.github.com/users/jpfiset/repos","events_url":"https://api.github.com/users/jpfiset/events{/privacy}","received_events_url":"https://api.github.com/users/jpfiset/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T19:16:23Z","updated_at":"2015-03-09T19:16:23Z","body":"To take advantage of constrained search, one must define a module specifying which layer the searches are constrained to. Here is an example:\r\n\r\n```json\r\n{\r\n   \"nunaliit_module\":{\r\n      \"search\": {\r\n         \"constraint\": \"<layer name>\"\r\n      }\r\n   }\r\n}\r\n```"}}