So you need to index json docs? Or you want to process json input and
get it to Solr via SolrJ? Or???

https://lucidworks.com/2012/02/14/indexing-with-solrj/

will give you a skeleton how to connect to Solr and index Solr docs.
You'd have to parse the json and construct the SolrInputDocument and
send it to Solr.

You can post json to Solr in a specific format, see:
https://lucene.apache.org/solr/guide/6_6/uploading-data-with-index-handlers.html#UploadingDatawithIndexHandlers-JSONFormattedIndexUpdates.

Otherwise could you explore in a bit more detail about what format the
json is in......

Best,
Erick

On Wed, Dec 13, 2017 at 7:24 AM, Andrew Kelly <akelly@grom.digital> wrote:
> I have an existing solr installation which uses the mysql jdbc driver to
> access a remote database and index some complex data structures. This
> has been serving me very well for a good long time, but I now need to
> expand it a bit. I need to add some additional data from another source
> via json, and am looking for some guidance on how best to achieve this.
> I've been googling for quite a while but apparently don't know how to
> properly phrase the query, as I've yet to find any good documentation.
>
> Can any of you point me to some help on how to add additional data (via
> json) to an existing index?
>
> Many thanks in advance,
>
> Andy
>
>

Reply via email to