{"action":"created","comment":{"url":"https://api.github.com/repos/rollerworks/RollerworksSearch/pulls/comments/24408495","id":24408495,"diff_hunk":"@@ -0,0 +1,139 @@\n+.. index::\n+   single: Input; Custom input processor\n+\n+How to Create a custom Input processor\n+======================================\n+\n+RollerworksSearch already provides input processors for a wide range of\n+formats, including XML, JSON, PHP Array's and the user-friendly FilterQuery.\n+\n+But sometimes you need support something else, whether you want to make\n+a simple string processor, use a binary file or fixed-length string syntax\n+or anything you can think of, everything is possible.\n+\n+Each processor follows a very simple principle, accept a user-input and\n+transform this to SearchCondition. That's it. You don't have to enforce groups\n+field-names or even support ranges!\n+\n+This example shows a simple processor which will accept any\n+value and places it in a list of configured fields, no support for ranges,\n+comparisons or whatsoever.\n+\n+.. tip::\n+\n+    In future we hope to add support for an input processor","path":"doc/cookbook/input_processor.rst","position":24,"original_position":24,"commit_id":"30abfdaa903d4bc8b8c78d1ce925632855abe222","original_commit_id":"93f170082bae642f5f1ae8301498a4cec776ab71","user":{"login":"cordoval","id":328359,"avatar_url":"https://avatars.githubusercontent.com/u/328359?v=3","gravatar_id":"","url":"https://api.github.com/users/cordoval","html_url":"https://github.com/cordoval","followers_url":"https://api.github.com/users/cordoval/followers","following_url":"https://api.github.com/users/cordoval/following{/other_user}","gists_url":"https://api.github.com/users/cordoval/gists{/gist_id}","starred_url":"https://api.github.com/users/cordoval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cordoval/subscriptions","organizations_url":"https://api.github.com/users/cordoval/orgs","repos_url":"https://api.github.com/users/cordoval/repos","events_url":"https://api.github.com/users/cordoval/events{/privacy}","received_events_url":"https://api.github.com/users/cordoval/received_events","type":"User","site_admin":false},"body":"the future","created_at":"2015-02-10T12:34:44Z","updated_at":"2015-02-10T12:34:44Z","html_url":"https://github.com/rollerworks/RollerworksSearch/pull/44#discussion_r24408495","pull_request_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/pulls/44","_links":{"self":{"href":"https://api.github.com/repos/rollerworks/RollerworksSearch/pulls/comments/24408495"},"html":{"href":"https://github.com/rollerworks/RollerworksSearch/pull/44#discussion_r24408495"},"pull_request":{"href":"https://api.github.com/repos/rollerworks/RollerworksSearch/pulls/44"}}},"pull_request":{"url":"https://api.github.com/repos/rollerworks/RollerworksSearch/pulls/44","id":28282887,"html_url":"https://github.com/rollerworks/RollerworksSearch/pull/44","diff_url":"https://github.com/rollerworks/RollerworksSearch/pull/44.diff","patch_url":"https://github.com/rollerworks/RollerworksSearch/pull/44.patch","issue_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/issues/44","number":44,"state":"open","locked":false,"title":"update documentation","user":{"login":"sstok","id":904790,"avatar_url":"https://avatars.githubusercontent.com/u/904790?v=3","gravatar_id":"","url":"https://api.github.com/users/sstok","html_url":"https://github.com/sstok","followers_url":"https://api.github.com/users/sstok/followers","following_url":"https://api.github.com/users/sstok/following{/other_user}","gists_url":"https://api.github.com/users/sstok/gists{/gist_id}","starred_url":"https://api.github.com/users/sstok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sstok/subscriptions","organizations_url":"https://api.github.com/users/sstok/orgs","repos_url":"https://api.github.com/users/sstok/repos","events_url":"https://api.github.com/users/sstok/events{/privacy}","received_events_url":"https://api.github.com/users/sstok/received_events","type":"User","site_admin":false},"body":"|Q            |A  |\r\n|---          |---|\r\n|Bug Fix?     |yes|\r\n|New Feature? |no |\r\n|BC Breaks?   |no |\r\n|Deprecations?|no |\r\n|Fixed Tickets|   |\r\n|License      |MIT|\r\n\r\nTodo:\r\n\r\n- [x] Move creating of a field type to a cookbook\r\n- [x] Rephrase to avoid duplication of \"that\".\r\n- [x] A new chapter explaining how conditions are processed (how they work)\r\n- [x] An more end-user friendly description on using the FilterQuery syntax\r\n- [x] Add documentation on how to create (cookbook) your own:\r\n   - [x] Input processor and exporter\r\n   - [x] ~~Condition optimizer~~\r\n   - [x] Type extension\r\n- [ ] Reviewing","created_at":"2015-01-29T14:35:22Z","updated_at":"2015-02-10T12:34:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d65f2e8d1f0bb13cca078991d356cf59de052984","assignee":null,"milestone":{"url":"https://api.github.com/repos/rollerworks/RollerworksSearch/milestones/6","labels_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/milestones/6/labels","id":901827,"number":6,"title":" v1.0.0-beta5","description":"","creator":{"login":"sstok","id":904790,"avatar_url":"https://avatars.githubusercontent.com/u/904790?v=3","gravatar_id":"","url":"https://api.github.com/users/sstok","html_url":"https://github.com/sstok","followers_url":"https://api.github.com/users/sstok/followers","following_url":"https://api.github.com/users/sstok/following{/other_user}","gists_url":"https://api.github.com/users/sstok/gists{/gist_id}","starred_url":"https://api.github.com/users/sstok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sstok/subscriptions","organizations_url":"https://api.github.com/users/sstok/orgs","repos_url":"https://api.github.com/users/sstok/repos","events_url":"https://api.github.com/users/sstok/events{/privacy}","received_events_url":"https://api.github.com/users/sstok/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":7,"state":"open","created_at":"2014-12-12T15:09:30Z","updated_at":"2015-02-10T10:36:59Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/pulls/44/commits","review_comments_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/pulls/44/comments","review_comment_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/pulls/comments/{number}","comments_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/issues/44/comments","statuses_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/statuses/30abfdaa903d4bc8b8c78d1ce925632855abe222","head":{"label":"sstok:doc-update-and-fixes","ref":"doc-update-and-fixes","sha":"30abfdaa903d4bc8b8c78d1ce925632855abe222","user":{"login":"sstok","id":904790,"avatar_url":"https://avatars.githubusercontent.com/u/904790?v=3","gravatar_id":"","url":"https://api.github.com/users/sstok","html_url":"https://github.com/sstok","followers_url":"https://api.github.com/users/sstok/followers","following_url":"https://api.github.com/users/sstok/following{/other_user}","gists_url":"https://api.github.com/users/sstok/gists{/gist_id}","starred_url":"https://api.github.com/users/sstok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sstok/subscriptions","organizations_url":"https://api.github.com/users/sstok/orgs","repos_url":"https://api.github.com/users/sstok/repos","events_url":"https://api.github.com/users/sstok/events{/privacy}","received_events_url":"https://api.github.com/users/sstok/received_events","type":"User","site_admin":false},"repo":{"id":15508793,"name":"RollerworksSearch","full_name":"sstok/RollerworksSearch","owner":{"login":"sstok","id":904790,"avatar_url":"https://avatars.githubusercontent.com/u/904790?v=3","gravatar_id":"","url":"https://api.github.com/users/sstok","html_url":"https://github.com/sstok","followers_url":"https://api.github.com/users/sstok/followers","following_url":"https://api.github.com/users/sstok/following{/other_user}","gists_url":"https://api.github.com/users/sstok/gists{/gist_id}","starred_url":"https://api.github.com/users/sstok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sstok/subscriptions","organizations_url":"https://api.github.com/users/sstok/orgs","repos_url":"https://api.github.com/users/sstok/repos","events_url":"https://api.github.com/users/sstok/events{/privacy}","received_events_url":"https://api.github.com/users/sstok/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sstok/RollerworksSearch","description":"Advanced search-building system - previously known as the RecordFilterBundle","fork":true,"url":"https://api.github.com/repos/sstok/RollerworksSearch","forks_url":"https://api.github.com/repos/sstok/RollerworksSearch/forks","keys_url":"https://api.github.com/repos/sstok/RollerworksSearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sstok/RollerworksSearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sstok/RollerworksSearch/teams","hooks_url":"https://api.github.com/repos/sstok/RollerworksSearch/hooks","issue_events_url":"https://api.github.com/repos/sstok/RollerworksSearch/issues/events{/number}","events_url":"https://api.github.com/repos/sstok/RollerworksSearch/events","assignees_url":"https://api.github.com/repos/sstok/RollerworksSearch/assignees{/user}","branches_url":"https://api.github.com/repos/sstok/RollerworksSearch/branches{/branch}","tags_url":"https://api.github.com/repos/sstok/RollerworksSearch/tags","blobs_url":"https://api.github.com/repos/sstok/RollerworksSearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sstok/RollerworksSearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sstok/RollerworksSearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/sstok/RollerworksSearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sstok/RollerworksSearch/statuses/{sha}","languages_url":"https://api.github.com/repos/sstok/RollerworksSearch/languages","stargazers_url":"https://api.github.com/repos/sstok/RollerworksSearch/stargazers","contributors_url":"https://api.github.com/repos/sstok/RollerworksSearch/contributors","subscribers_url":"https://api.github.com/repos/sstok/RollerworksSearch/subscribers","subscription_url":"https://api.github.com/repos/sstok/RollerworksSearch/subscription","commits_url":"https://api.github.com/repos/sstok/RollerworksSearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/sstok/RollerworksSearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/sstok/RollerworksSearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/sstok/RollerworksSearch/issues/comments/{number}","contents_url":"https://api.github.com/repos/sstok/RollerworksSearch/contents/{+path}","compare_url":"https://api.github.com/repos/sstok/RollerworksSearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sstok/RollerworksSearch/merges","archive_url":"https://api.github.com/repos/sstok/RollerworksSearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sstok/RollerworksSearch/downloads","issues_url":"https://api.github.com/repos/sstok/RollerworksSearch/issues{/number}","pulls_url":"https://api.github.com/repos/sstok/RollerworksSearch/pulls{/number}","milestones_url":"https://api.github.com/repos/sstok/RollerworksSearch/milestones{/number}","notifications_url":"https://api.github.com/repos/sstok/RollerworksSearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sstok/RollerworksSearch/labels{/name}","releases_url":"https://api.github.com/repos/sstok/RollerworksSearch/releases{/id}","created_at":"2013-12-29T13:26:30Z","updated_at":"2015-02-10T10:10:44Z","pushed_at":"2015-02-10T12:30:11Z","git_url":"git://github.com/sstok/RollerworksSearch.git","ssh_url":"git@github.com:sstok/RollerworksSearch.git","clone_url":"https://github.com/sstok/RollerworksSearch.git","svn_url":"https://github.com/sstok/RollerworksSearch","homepage":"","size":2228,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rollerworks:master","ref":"master","sha":"fc4084c5940521f6626201b72f2aef4cd02e4f7c","user":{"login":"rollerworks","id":1769921,"avatar_url":"https://avatars.githubusercontent.com/u/1769921?v=3","gravatar_id":"","url":"https://api.github.com/users/rollerworks","html_url":"https://github.com/rollerworks","followers_url":"https://api.github.com/users/rollerworks/followers","following_url":"https://api.github.com/users/rollerworks/following{/other_user}","gists_url":"https://api.github.com/users/rollerworks/gists{/gist_id}","starred_url":"https://api.github.com/users/rollerworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rollerworks/subscriptions","organizations_url":"https://api.github.com/users/rollerworks/orgs","repos_url":"https://api.github.com/users/rollerworks/repos","events_url":"https://api.github.com/users/rollerworks/events{/privacy}","received_events_url":"https://api.github.com/users/rollerworks/received_events","type":"Organization","site_admin":false},"repo":{"id":11894231,"name":"RollerworksSearch","full_name":"rollerworks/RollerworksSearch","owner":{"login":"rollerworks","id":1769921,"avatar_url":"https://avatars.githubusercontent.com/u/1769921?v=3","gravatar_id":"","url":"https://api.github.com/users/rollerworks","html_url":"https://github.com/rollerworks","followers_url":"https://api.github.com/users/rollerworks/followers","following_url":"https://api.github.com/users/rollerworks/following{/other_user}","gists_url":"https://api.github.com/users/rollerworks/gists{/gist_id}","starred_url":"https://api.github.com/users/rollerworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rollerworks/subscriptions","organizations_url":"https://api.github.com/users/rollerworks/orgs","repos_url":"https://api.github.com/users/rollerworks/repos","events_url":"https://api.github.com/users/rollerworks/events{/privacy}","received_events_url":"https://api.github.com/users/rollerworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rollerworks/RollerworksSearch","description":"An easy to implement powerful search system for PHP","fork":false,"url":"https://api.github.com/repos/rollerworks/RollerworksSearch","forks_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/forks","keys_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/teams","hooks_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/hooks","issue_events_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/issues/events{/number}","events_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/events","assignees_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/assignees{/user}","branches_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/branches{/branch}","tags_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/tags","blobs_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/statuses/{sha}","languages_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/languages","stargazers_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/stargazers","contributors_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/contributors","subscribers_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/subscribers","subscription_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/subscription","commits_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/issues/comments/{number}","contents_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/contents/{+path}","compare_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/merges","archive_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/downloads","issues_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/issues{/number}","pulls_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/pulls{/number}","milestones_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/milestones{/number}","notifications_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/labels{/name}","releases_url":"https://api.github.com/repos/rollerworks/RollerworksSearch/releases{/id}","created_at":"2013-08-05T09:03:44Z","updated_at":"2015-02-10T10:36:59Z","pushed_at":"2015-02-10T10:37:06Z","git_url":"git://github.com/rollerworks/RollerworksSearch.git","ssh_url":"git@github.com:rollerworks/RollerworksSearch.git","clone_url":"https://github.com/rollerworks/RollerworksSearch.git","svn_url":"https://github.com/rollerworks/RollerworksSearch","homepage":"","size":2782,"stargazers_count":10,"watchers_count":10,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":7,"forks":3,"open_issues":7,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rollerworks/RollerworksSearch/pulls/44"},"html":{"href":"https://github.com/rollerworks/RollerworksSearch/pull/44"},"issue":{"href":"https://api.github.com/repos/rollerworks/RollerworksSearch/issues/44"},"comments":{"href":"https://api.github.com/repos/rollerworks/RollerworksSearch/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/rollerworks/RollerworksSearch/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/rollerworks/RollerworksSearch/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/rollerworks/RollerworksSearch/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/rollerworks/RollerworksSearch/statuses/30abfdaa903d4bc8b8c78d1ce925632855abe222"}}}}