{"action":"created","comment":{"url":"https://api.github.com/repos/TextDB/textdb/pulls/comments/63622053","id":63622053,"diff_hunk":"@@ -106,70 +92,55 @@ public void open() throws DataFlowException {\n     @Override\n     public ITuple getNextTuple() throws DataFlowException {\n \n-        List<IField> fieldList;\n-        Set<String> setOfFoundTokens = new HashSet<>();\n         try {\n             ITuple sourceTuple = sourceOperator.getNextTuple();\n             if(sourceTuple == null){\n                 return null;\n             }\n-            fieldList = sourceTuple.getFields();\n-            spanList.clear();\n-            if(!spanSchemaDefined){\n-                Schema schema = sourceTuple.getSchema();\n-                spanSchema = Utils.createSpanSchema(schema);\n-                spanSchemaDefined = true;\n-            }\n-            for(int attributeIndex = 0; attributeIndex < attributeList.size(); attributeIndex++){\n-                IField field = sourceTuple.getField(attributeList.get(attributeIndex).getFieldName());\n-                String fieldValue = (String) (field).getValue();\n-                String fieldName;\n-                int positionIndex = 0; // Next position in the field to be checked.\n-                int spanStartPosition; // Starting position of the matched query\n-                if(field instanceof StringField){\n+\n+//            ITuple DataTuple = sourceTuple.","path":"textdb/textdb-dataflow/src/main/java/edu/uci/ics/textdb/dataflow/keywordmatch/KeywordMatcher.java","position":75,"original_position":75,"commit_id":"219d0fabeeb41155901ba92de9822043fb4b9bb0","original_commit_id":"219d0fabeeb41155901ba92de9822043fb4b9bb0","user":{"login":"chenlica","id":12926365,"avatar_url":"https://avatars.githubusercontent.com/u/12926365?v=3","gravatar_id":"","url":"https://api.github.com/users/chenlica","html_url":"https://github.com/chenlica","followers_url":"https://api.github.com/users/chenlica/followers","following_url":"https://api.github.com/users/chenlica/following{/other_user}","gists_url":"https://api.github.com/users/chenlica/gists{/gist_id}","starred_url":"https://api.github.com/users/chenlica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenlica/subscriptions","organizations_url":"https://api.github.com/users/chenlica/orgs","repos_url":"https://api.github.com/users/chenlica/repos","events_url":"https://api.github.com/users/chenlica/events{/privacy}","received_events_url":"https://api.github.com/users/chenlica/received_events","type":"User","site_admin":false},"body":"Remove it?","created_at":"2016-05-17T23:29:29Z","updated_at":"2016-05-17T23:29:29Z","html_url":"https://github.com/TextDB/textdb/pull/103#discussion_r63622053","pull_request_url":"https://api.github.com/repos/TextDB/textdb/pulls/103","_links":{"self":{"href":"https://api.github.com/repos/TextDB/textdb/pulls/comments/63622053"},"html":{"href":"https://github.com/TextDB/textdb/pull/103#discussion_r63622053"},"pull_request":{"href":"https://api.github.com/repos/TextDB/textdb/pulls/103"}}},"pull_request":{"url":"https://api.github.com/repos/TextDB/textdb/pulls/103","id":70291240,"html_url":"https://github.com/TextDB/textdb/pull/103","diff_url":"https://github.com/TextDB/textdb/pull/103.diff","patch_url":"https://github.com/TextDB/textdb/pull/103.patch","issue_url":"https://api.github.com/repos/TextDB/textdb/issues/103","number":103,"state":"open","locked":false,"title":"[Issue #31] (Team 4) Enabling positional indexing in Lucene for TEXT type","user":{"login":"akshaybetala","id":1401007,"avatar_url":"https://avatars.githubusercontent.com/u/1401007?v=3","gravatar_id":"","url":"https://api.github.com/users/akshaybetala","html_url":"https://github.com/akshaybetala","followers_url":"https://api.github.com/users/akshaybetala/followers","following_url":"https://api.github.com/users/akshaybetala/following{/other_user}","gists_url":"https://api.github.com/users/akshaybetala/gists{/gist_id}","starred_url":"https://api.github.com/users/akshaybetala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akshaybetala/subscriptions","organizations_url":"https://api.github.com/users/akshaybetala/orgs","repos_url":"https://api.github.com/users/akshaybetala/repos","events_url":"https://api.github.com/users/akshaybetala/events{/privacy}","received_events_url":"https://api.github.com/users/akshaybetala/received_events","type":"User","site_admin":false},"body":"Previously a TEXT field doesn't enable positional indexing.  In this PR we enable positional indexing in Lucene so that we can return information about character offsets and token offsets.","created_at":"2016-05-17T02:27:17Z","updated_at":"2016-05-17T23:29:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"04f5378789fa1fcaa708e40573abdccbe7d892ce","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TextDB/textdb/pulls/103/commits","review_comments_url":"https://api.github.com/repos/TextDB/textdb/pulls/103/comments","review_comment_url":"https://api.github.com/repos/TextDB/textdb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TextDB/textdb/issues/103/comments","statuses_url":"https://api.github.com/repos/TextDB/textdb/statuses/219d0fabeeb41155901ba92de9822043fb4b9bb0","head":{"label":"TextDB:team4-phrase-operator","ref":"team4-phrase-operator","sha":"219d0fabeeb41155901ba92de9822043fb4b9bb0","user":{"login":"TextDB","id":18126950,"avatar_url":"https://avatars.githubusercontent.com/u/18126950?v=3","gravatar_id":"","url":"https://api.github.com/users/TextDB","html_url":"https://github.com/TextDB","followers_url":"https://api.github.com/users/TextDB/followers","following_url":"https://api.github.com/users/TextDB/following{/other_user}","gists_url":"https://api.github.com/users/TextDB/gists{/gist_id}","starred_url":"https://api.github.com/users/TextDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TextDB/subscriptions","organizations_url":"https://api.github.com/users/TextDB/orgs","repos_url":"https://api.github.com/users/TextDB/repos","events_url":"https://api.github.com/users/TextDB/events{/privacy}","received_events_url":"https://api.github.com/users/TextDB/received_events","type":"Organization","site_admin":false},"repo":{"id":53976910,"name":"textdb","full_name":"TextDB/textdb","owner":{"login":"TextDB","id":18126950,"avatar_url":"https://avatars.githubusercontent.com/u/18126950?v=3","gravatar_id":"","url":"https://api.github.com/users/TextDB","html_url":"https://github.com/TextDB","followers_url":"https://api.github.com/users/TextDB/followers","following_url":"https://api.github.com/users/TextDB/following{/other_user}","gists_url":"https://api.github.com/users/TextDB/gists{/gist_id}","starred_url":"https://api.github.com/users/TextDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TextDB/subscriptions","organizations_url":"https://api.github.com/users/TextDB/orgs","repos_url":"https://api.github.com/users/TextDB/repos","events_url":"https://api.github.com/users/TextDB/events{/privacy}","received_events_url":"https://api.github.com/users/TextDB/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TextDB/textdb","description":"Text-centric data management system","fork":false,"url":"https://api.github.com/repos/TextDB/textdb","forks_url":"https://api.github.com/repos/TextDB/textdb/forks","keys_url":"https://api.github.com/repos/TextDB/textdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TextDB/textdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TextDB/textdb/teams","hooks_url":"https://api.github.com/repos/TextDB/textdb/hooks","issue_events_url":"https://api.github.com/repos/TextDB/textdb/issues/events{/number}","events_url":"https://api.github.com/repos/TextDB/textdb/events","assignees_url":"https://api.github.com/repos/TextDB/textdb/assignees{/user}","branches_url":"https://api.github.com/repos/TextDB/textdb/branches{/branch}","tags_url":"https://api.github.com/repos/TextDB/textdb/tags","blobs_url":"https://api.github.com/repos/TextDB/textdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TextDB/textdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TextDB/textdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/TextDB/textdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TextDB/textdb/statuses/{sha}","languages_url":"https://api.github.com/repos/TextDB/textdb/languages","stargazers_url":"https://api.github.com/repos/TextDB/textdb/stargazers","contributors_url":"https://api.github.com/repos/TextDB/textdb/contributors","subscribers_url":"https://api.github.com/repos/TextDB/textdb/subscribers","subscription_url":"https://api.github.com/repos/TextDB/textdb/subscription","commits_url":"https://api.github.com/repos/TextDB/textdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/TextDB/textdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/TextDB/textdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/TextDB/textdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/TextDB/textdb/contents/{+path}","compare_url":"https://api.github.com/repos/TextDB/textdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TextDB/textdb/merges","archive_url":"https://api.github.com/repos/TextDB/textdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TextDB/textdb/downloads","issues_url":"https://api.github.com/repos/TextDB/textdb/issues{/number}","pulls_url":"https://api.github.com/repos/TextDB/textdb/pulls{/number}","milestones_url":"https://api.github.com/repos/TextDB/textdb/milestones{/number}","notifications_url":"https://api.github.com/repos/TextDB/textdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TextDB/textdb/labels{/name}","releases_url":"https://api.github.com/repos/TextDB/textdb/releases{/id}","deployments_url":"https://api.github.com/repos/TextDB/textdb/deployments","created_at":"2016-03-15T20:38:46Z","updated_at":"2016-05-16T23:33:41Z","pushed_at":"2016-05-17T23:24:19Z","git_url":"git://github.com/TextDB/textdb.git","ssh_url":"git@github.com:TextDB/textdb.git","clone_url":"https://github.com/TextDB/textdb.git","svn_url":"https://github.com/TextDB/textdb","homepage":null,"size":13964,"stargazers_count":8,"watchers_count":8,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":16,"forks":3,"open_issues":16,"watchers":8,"default_branch":"master"}},"base":{"label":"TextDB:master","ref":"master","sha":"aacdec4ec0e9d5b5742afbf8b2873d44309261f7","user":{"login":"TextDB","id":18126950,"avatar_url":"https://avatars.githubusercontent.com/u/18126950?v=3","gravatar_id":"","url":"https://api.github.com/users/TextDB","html_url":"https://github.com/TextDB","followers_url":"https://api.github.com/users/TextDB/followers","following_url":"https://api.github.com/users/TextDB/following{/other_user}","gists_url":"https://api.github.com/users/TextDB/gists{/gist_id}","starred_url":"https://api.github.com/users/TextDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TextDB/subscriptions","organizations_url":"https://api.github.com/users/TextDB/orgs","repos_url":"https://api.github.com/users/TextDB/repos","events_url":"https://api.github.com/users/TextDB/events{/privacy}","received_events_url":"https://api.github.com/users/TextDB/received_events","type":"Organization","site_admin":false},"repo":{"id":53976910,"name":"textdb","full_name":"TextDB/textdb","owner":{"login":"TextDB","id":18126950,"avatar_url":"https://avatars.githubusercontent.com/u/18126950?v=3","gravatar_id":"","url":"https://api.github.com/users/TextDB","html_url":"https://github.com/TextDB","followers_url":"https://api.github.com/users/TextDB/followers","following_url":"https://api.github.com/users/TextDB/following{/other_user}","gists_url":"https://api.github.com/users/TextDB/gists{/gist_id}","starred_url":"https://api.github.com/users/TextDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TextDB/subscriptions","organizations_url":"https://api.github.com/users/TextDB/orgs","repos_url":"https://api.github.com/users/TextDB/repos","events_url":"https://api.github.com/users/TextDB/events{/privacy}","received_events_url":"https://api.github.com/users/TextDB/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TextDB/textdb","description":"Text-centric data management system","fork":false,"url":"https://api.github.com/repos/TextDB/textdb","forks_url":"https://api.github.com/repos/TextDB/textdb/forks","keys_url":"https://api.github.com/repos/TextDB/textdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TextDB/textdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TextDB/textdb/teams","hooks_url":"https://api.github.com/repos/TextDB/textdb/hooks","issue_events_url":"https://api.github.com/repos/TextDB/textdb/issues/events{/number}","events_url":"https://api.github.com/repos/TextDB/textdb/events","assignees_url":"https://api.github.com/repos/TextDB/textdb/assignees{/user}","branches_url":"https://api.github.com/repos/TextDB/textdb/branches{/branch}","tags_url":"https://api.github.com/repos/TextDB/textdb/tags","blobs_url":"https://api.github.com/repos/TextDB/textdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TextDB/textdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TextDB/textdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/TextDB/textdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TextDB/textdb/statuses/{sha}","languages_url":"https://api.github.com/repos/TextDB/textdb/languages","stargazers_url":"https://api.github.com/repos/TextDB/textdb/stargazers","contributors_url":"https://api.github.com/repos/TextDB/textdb/contributors","subscribers_url":"https://api.github.com/repos/TextDB/textdb/subscribers","subscription_url":"https://api.github.com/repos/TextDB/textdb/subscription","commits_url":"https://api.github.com/repos/TextDB/textdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/TextDB/textdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/TextDB/textdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/TextDB/textdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/TextDB/textdb/contents/{+path}","compare_url":"https://api.github.com/repos/TextDB/textdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TextDB/textdb/merges","archive_url":"https://api.github.com/repos/TextDB/textdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TextDB/textdb/downloads","issues_url":"https://api.github.com/repos/TextDB/textdb/issues{/number}","pulls_url":"https://api.github.com/repos/TextDB/textdb/pulls{/number}","milestones_url":"https://api.github.com/repos/TextDB/textdb/milestones{/number}","notifications_url":"https://api.github.com/repos/TextDB/textdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TextDB/textdb/labels{/name}","releases_url":"https://api.github.com/repos/TextDB/textdb/releases{/id}","deployments_url":"https://api.github.com/repos/TextDB/textdb/deployments","created_at":"2016-03-15T20:38:46Z","updated_at":"2016-05-16T23:33:41Z","pushed_at":"2016-05-17T23:24:19Z","git_url":"git://github.com/TextDB/textdb.git","ssh_url":"git@github.com:TextDB/textdb.git","clone_url":"https://github.com/TextDB/textdb.git","svn_url":"https://github.com/TextDB/textdb","homepage":null,"size":13964,"stargazers_count":8,"watchers_count":8,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":16,"forks":3,"open_issues":16,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TextDB/textdb/pulls/103"},"html":{"href":"https://github.com/TextDB/textdb/pull/103"},"issue":{"href":"https://api.github.com/repos/TextDB/textdb/issues/103"},"comments":{"href":"https://api.github.com/repos/TextDB/textdb/issues/103/comments"},"review_comments":{"href":"https://api.github.com/repos/TextDB/textdb/pulls/103/comments"},"review_comment":{"href":"https://api.github.com/repos/TextDB/textdb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TextDB/textdb/pulls/103/commits"},"statuses":{"href":"https://api.github.com/repos/TextDB/textdb/statuses/219d0fabeeb41155901ba92de9822043fb4b9bb0"}}}}