Bob,

The field mappings with the json paths is actually something provided by
Solr. The PutSolr processor is just passing all those parameters over, and
Solr is doing the extraction, so we are limited here by what Solr provides.
I'm not aware of a way to tell Solr to select the whole document into one
field, but it may be possible.

An alternative might be to modify the json with in NiFi to add a new field
that contains the whole original document. The ExtractText processor would
likely be your starting point to select the whole content into an
attribute, then potentially ReplaceText to modify the original json.

I believe there is a ticket somewhere in jira for a ModifyJson processor
which would make this easier in the future, but doesn't exist right now.

-Bryan

On Wednesday, December 23, 2015, Bob Zhao <[email protected]> wrote:

> Hello,
>
> Currently, PutSolr can parse the JSON with path very easily.
> If I want to save those extracted items with the original raw JSON
> (another column) together,
> how the expression should be?
>
> f.20  json_raw_t:\
>
> doesn't work.
>
> Thanks,
> Bob
>
>
>

-- 
Sent from Gmail Mobile

Reply via email to