Maven Packages

Hi everyone,
Is it possible to load maven package to use Json Processor from code?
I am writing plugin, and I need to use Json Processor to parse data.

Thanks,
Nemanja

What kind of plugin is that? Is it a processor for ingest pipeline?

No. This code is not published on Maven.
But you can copy/paste the existing code (if compatible with the Elastic License 2.0 or SSPL V1) from:

Hi @dadoonet, thanks for the answer.
I am writing Ingest Plugin to create ingest pipeline.
Inside of the plugin I call 3rd party API (I know this is not optimal but didn't found better solutions), then I want to parse that JSON and save it as nested fields and not just strings.
I'll try the copy paste method, and see if it works thanks.
My current workaround is to document that custom pipeline has to have my processor and than json processor after that in order to work.

Thanks,
Nemanja

I think that's what I'd do as well. :wink:

Thanks a lot for the comments!
Nemanja

Hi @dadoonet I didn't want to start new tread for this.
Is there any examples on how to parse optional configuration?
I need to have option to add config file for my plugin, that configure additional logic.
I need proper way to check if config.yml is there, and also if settings are not present to use default value.

I was looking at elasticsearch/ExampleCustomSettingsConfig.java at master · elastic/elasticsearch · GitHub but this wont work if any setting is missing.

Thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.