{"action":"created","issue":{"url":"https://api.github.com/repos/NCBI-Hackathons/seqr/issues/46","labels_url":"https://api.github.com/repos/NCBI-Hackathons/seqr/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/NCBI-Hackathons/seqr/issues/46/comments","events_url":"https://api.github.com/repos/NCBI-Hackathons/seqr/issues/46/events","html_url":"https://github.com/NCBI-Hackathons/seqr/issues/46","id":107415578,"number":46,"title":"Make Fasta index/parsing part of solr plugin?","user":{"login":"averagehat","id":5606168,"avatar_url":"https://avatars.githubusercontent.com/u/5606168?v=3","gravatar_id":"","url":"https://api.github.com/users/averagehat","html_url":"https://github.com/averagehat","followers_url":"https://api.github.com/users/averagehat/followers","following_url":"https://api.github.com/users/averagehat/following{/other_user}","gists_url":"https://api.github.com/users/averagehat/gists{/gist_id}","starred_url":"https://api.github.com/users/averagehat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/averagehat/subscriptions","organizations_url":"https://api.github.com/users/averagehat/orgs","repos_url":"https://api.github.com/users/averagehat/repos","events_url":"https://api.github.com/users/averagehat/events{/privacy}","received_events_url":"https://api.github.com/users/averagehat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-20T20:19:44Z","updated_at":"2015-09-21T17:14:25Z","closed_at":null,"body":"This would be nice because then you could simply do `curl <url> -d file.fasta`, and it could also be used in other projects, allowing them to index Fastas without using our app. Does this seem like a good idea? I'm not sure what the standard practice is in the Solr world"},"comment":{"url":"https://api.github.com/repos/NCBI-Hackathons/seqr/issues/comments/142046114","html_url":"https://github.com/NCBI-Hackathons/seqr/issues/46#issuecomment-142046114","issue_url":"https://api.github.com/repos/NCBI-Hackathons/seqr/issues/46","id":142046114,"user":{"login":"averagehat","id":5606168,"avatar_url":"https://avatars.githubusercontent.com/u/5606168?v=3","gravatar_id":"","url":"https://api.github.com/users/averagehat","html_url":"https://github.com/averagehat","followers_url":"https://api.github.com/users/averagehat/followers","following_url":"https://api.github.com/users/averagehat/following{/other_user}","gists_url":"https://api.github.com/users/averagehat/gists{/gist_id}","starred_url":"https://api.github.com/users/averagehat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/averagehat/subscriptions","organizations_url":"https://api.github.com/users/averagehat/orgs","repos_url":"https://api.github.com/users/averagehat/repos","events_url":"https://api.github.com/users/averagehat/events{/privacy}","received_events_url":"https://api.github.com/users/averagehat/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T17:14:25Z","updated_at":"2015-09-21T17:14:25Z","body":"Update Processor expects an input document, so it would work to set the fields if the fasta file is already wrapped in JSON or some other format Solr understands (otherwise Solr will error before it becomes an inputdocument). One good thing about this way is that it can be written in a scripting language and dropped into the config folder without having to include a jar. But the client still has to process the fasta files.\r\n\r\nIn order to avoid that, It looks like we can subclass the UpdateRequestHandler, override the `createDefaultLoaders` method to add my format extension along with a new `ContentStreamLoader` for FASTA. Then include it in my solrconfig.xml as a requestHandler. \r\nThere is some discussion here: http://andreagazzarini.blogspot.com/2014/12/loading-rdf-ie-custom-data-in-solr.html \r\n\r\nThis can be included in a jar file."}}