Thanks Matt. I managed the downstream system to consume the existing format. Although, I discovered one bug during this experiment https://issues.apache.org/jira/browse/SOLR-16811 open-source, you know.
On Mon, May 22, 2023 at 9:42 PM Matt Casters <[email protected]> wrote: > To be honest I usually use Javascript to assemble more complex JSON > structures. > The ability in that transform to have start and end logic allows you to > add elements to arrays and so on. > Let me know if you need a particular example. > > HTH, > Matt > > Op vr 19 mei 2023 23:52 schreef Mikhail Khludnev <[email protected]>: > >> Hello, >> I'm experimenting with Hop for producing an array of JSON objects like >> Indexing >> with Update Handlers :: Apache Solr Reference Guide >> <https://solr.apache.org/guide/solr/latest/indexing-guide/indexing-with-update-handlers.html#adding-multiple-json-documents> >> >> <https://solr.apache.org/guide/solr/latest/indexing-guide/indexing-with-update-handlers.html#adding-multiple-json-documents>I >> like JSON Output since it has "Nr. rows in a block" it blocks records >> into bigger arrays. >> However it creates a root object with array property, but I need just >> array as root elem, and can't set Json block name empty to suppress it. >> As an alternative I've checked Enhanced JSON Output. It can suppress root >> object&property and yield a root array. It's fine. But I can't find how to >> limit size of the block (created array). How I can set "Nr. rows in a >> block" with Enhanced JSON Output? >> >> Btw, isn't there a SolrJ transform for HOP? >> >> -- >> Sincerely yours >> Mikhail Khludnev >> > -- Sincerely yours Mikhail Khludnev
