[ 
https://issues.apache.org/jira/browse/SOLR-13622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16885162#comment-16885162
 ] 

Joel Bernstein edited comment on SOLR-13622 at 7/15/19 12:42 PM:
-----------------------------------------------------------------

The StreamContext has a reference to the SolrCore where the request is being 
executed. 
{code:java}
SolrCore core = (SolrCore)streamContext.get("solr-core"){code}
Once you have the core you can get the SolrResourceLoader and then figure out 
how to fetch files.

The SolrCore is set for each request in StreamHandler line 174.


was (Author: joel.bernstein):
The StreamContext has a reference to the SolrCore where the request is being 
executed. 
{code:java}
SolrCore core = streamContext.get("solr-core"){code}
Once you have the core you can get the SolrResourceLoader and then figure out 
how to fetch files.

The SolrCore is set for each request in StreamHandler line 174.

> Add FileStream Streaming Expression
> -----------------------------------
>
>                 Key: SOLR-13622
>                 URL: https://issues.apache.org/jira/browse/SOLR-13622
>             Project: Solr
>          Issue Type: New Feature
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: streaming expressions
>            Reporter: Joel Bernstein
>            Assignee: Jason Gerlowski
>            Priority: Major
>         Attachments: SOLR-13622.patch
>
>
> The FileStream will read files from a local filesystem and Stream back each 
> line of the file as a tuple.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to