[
https://issues.apache.org/jira/browse/SOLR-7535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jason Gerlowski updated SOLR-7535:
----------------------------------
Attachment: SOLR-7535.patch
Latest patch addresses 3 of Joel's concerns (see above):
1.) UpdateStream now extends TupleStream, instead of CloudSolrStream
2.) UpdateStream no longer commits on EOF.
3.) UpdateStream now takes a mandatory batchSize argument as a namedParameter.
It reads batchSize tuples from the wrapped stream before sending them off. It
then spits out a tuple with a "uploadedDocs" parameter.
i.e. the stream now outputs data that looks like:
{code}
{"result-set":
{"docs":[
{"uploadedDocs":5},
{"uploadedDocs":5},
{"uploadedDocs":5},
....
{"uploadedDocs":4,"EOF":true,"RESPONSE_TIME":146}]
}
}
{code}
I thought a bit about making batchSize an optional parameter, and just using a
reasonable default/fallback value when no value is provided. But I decided
against it, since this is probably something a user should be deciding for
themselves.
Still no tests on this patch. Running late for work, so I can't add them now.
Hopefully that'll be a job for this evening.
> Add UpdateStream to Streaming API and Streaming Expression
> ----------------------------------------------------------
>
> Key: SOLR-7535
> URL: https://issues.apache.org/jira/browse/SOLR-7535
> Project: Solr
> Issue Type: New Feature
> Components: clients - java, SolrJ
> Reporter: Joel Bernstein
> Priority: Minor
> Attachments: SOLR-7535.patch, SOLR-7535.patch
>
>
> The ticket adds an UpdateStream implementation to the Streaming API and
> streaming expressions. The UpdateStream will wrap a TupleStream and send the
> Tuples it reads to a SolrCloud collection to be indexed.
> This will allow users to pull data from different Solr Cloud collections,
> merge and transform the streams and send the transformed data to another Solr
> Cloud collection.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]