在solr中从JSON导入数据 [英] import data from JSON in solr

查看:353
本文介绍了在solr中从JSON导入数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前,我在solr中使用XML文件. 我使用带有XPathentityProcessor的DataimportHandler来索引xml文件的数据.

Currently I am using XML file in solr. I index xml file's data using DataimportHandler with XPathentityProcessor.

现在我想从json文件导入数据.

Now I want to import data from json file.

有什么例子吗?

关于, 萨加尔

推荐答案

您需要的是类似

curl 'http://localhost:8983/solr/update/json?commit=true' --data-binary @books.json -H 'Content-type:application/json'

取自示例.

来源: https://wiki.apache.org/solr/UpdateJSON

这篇关于在solr中从JSON导入数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆