Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6569

Why tab seperated file is giving error in solr during being inserted

    XMLWordPrintableJSON

Details

    Description

      link for stackoverflow as well http://stackoverflow.com/questions/26077474/why-tab-seperated-file-is-giving-error-in-solr-during-being-inserted

      When below command is run

      C:\dev\tools\solr-4.7.2\apache-tomcat-6.0.37\bin>curl "http://localhost:8080/solr-4.7.2/update/csv?commit=true&rowid=id&fieldnames=interfaceseq,extractnumber&separator=%09&stream.file=C:\
      opt\invoices\input\5924usage_data1.dat&stream.contentType=text/csv&header=false&trim=true"

      I get below error which i can not understand the reason.

      <?xml version="1.0" encoding="UTF-8"?>
      <response>
      <lst name="responseHeader"><int name="status">400</int><int name="QTime">1</int></lst><lst name="error"><str name="msg">ERROR: [doc=0] unknown field 'interfaceseq'</str><int name="code">400</int></lst>
      </response>

      The file content is as below

      10000000001 5923

      Attachments

        Activity

          People

            Unassigned Unassigned
            fatih.tekin85@gmail.com fatih
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: