Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
未使用SOLR 6完全导入数据_Solr_Solr6 - Fatal编程技术网

未使用SOLR 6完全导入数据

未使用SOLR 6完全导入数据,solr,solr6,Solr,Solr6,我正在使用Solr6 我没有从SOLR日志中得到任何错误。。当从SolrUI触发查询时,可能我没有得到完整的数据。 我只得到[SOLR回应][1] solrconfig.xml <requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler"> <lst name="defaults">

我正在使用Solr6

我没有从SOLR日志中得到任何错误。。当从SolrUI触发查询时,可能我没有得到完整的数据。 我只得到[SOLR回应][1]

solrconfig.xml

    <requestHandler name="/dataimport" 
               class="org.apache.solr.handler.dataimport.DataImportHandler">
      <lst name="defaults">
        <str name="config">solr-data-config.xml</str>
      </lst>
    </requestHandler>

solr-data-config.xml
这是我的配置文件solr-data-config.xml

<dataConfig>
    <dataSource driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/xxxxxx_schema" user="root" password="xxxxxx" />
    <document>
        <entity name="implas" query="select 
UID,
IMP_DEVICE_ID,
IMP_DEVICE_ISSUE_AGY,
IMP_BRAND_NAME,
IMP_COMPANY_NAME,
IMP_VERSION_MDL_NUM,
IMP_MRI_SAFETY_STATUS,
IMP_GMDN_TERMS,
IMP_LABEL_CONT_NRL,
IMP_CREATED_USER,
IMP_CREATED_TS,
IMP_UPDATED_USER,
IMP_UPDATED_TS from xxxxxxx_master">
            <field column="UID" name="id" />
            <field column="imp_device_id" name="impdevice" />
            <field column="imp_device_issue_agy" name="impissue" />
            <field column="imp_brand_name" name="impbrand" />
            <field column="IMP_COMPANY_NAME" name="impcompany" />
            <field column="IMP_VERSION_MDL_NUM" name="impversion" />
            <field column="IMP_MRI_SAFETY_STATUS" name="impmri" />
            <field column="IMP_GMDN_TERMS" name="impgdn" />
            <field column="IMP_LABEL_CONT_NRL" name="implable" />
            <field column="IMP_CREATED_USER" name="impcreated" />
            <field column="IMP_CREATED_TS" name="impts" />
            <field column="IMP_UPDATED_USER" name="impupdated" />
        </entity>
    </document>
</dataConfig>



Response :

{
  "responseHeader":{
    "status":0,
    "QTime":0,
    "params":{
      "q":"*:*",
      "indent":"on",
      "wt":"json",
      "_":"1495186229665"}},
  "response":{"numFound":12000,"start":0,"docs":[
      {
        "id":"1",
        "_version_":1567804808791851008},
      {
        "id":"2",
        "_version_":1567804808792899584},
      {
        "id":"3",
        "_version_":1567804808793948160},
      {
        "id":"4",
        "_version_":1567804808793948161},
      {
        "id":"5",
        "_version_":1567804808794996736},
      {
        "id":"6",
        "_version_":1567804808794996737},
      {
        "id":"7",
        "_version_":1567804808794996738},
      {
        "id":"8",
        "_version_":1567804808796045312},
      {
        "id":"9",
        "_version_":1567804808796045313},

答复:
{
“负责人”:{
“状态”:0,
“QTime”:0,
“参数”:{
“q”:“*:*”,
“缩进”:“打开”,
“wt”:“json”,
"_":"1495186229665"}},
“响应”:{“numFound”:12000,“start”:0,“docs”:[
{
“id”:“1”,
“u版本”:1567804087791851008},
{
“id”:“2”,
“u版本”:156780408792899584},
{
“id”:“3”,
“u版本”:156780408794948160},
{
“id”:“4”,
“u版本”:156780408794948161},
{
“id”:“5”,
“u版本”:156780408794946736},
{
“id”:“6”,
“U版本”:156780408794946737},
{
“id”:“7”,
“U版本”:156780408794946738},
{
“id”:“8”,
“U版本”:1567804808796045312},
{
“id”:“9”,
“u版本”:1567804808796045313},

响应映像似乎没有上载。您在数据导入后提交了文档吗?为什么在这上面使用ibm中端标记?看起来您使用的是MySQL而不是DB2。@jmarkmurphy-或者可能就是这样。可能OP正试图在中端连接到DB2,但使用的是MySQL驱动程序?我不知道是什么“[SOLR response][1]”意思是说,很难说OP得到了多少。MySql或DB2,它只是一个数据库,我正在连接,但我的SOLR响应没有得到,即使我的导入成功。@squid我已经更新了响应,先生,请验证。