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

SolrJ, by preventing multi-part post, loses key information about file name that Tika needs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.4, 6.0
    • clients - java
    • None

    Description

      SolrJ accepts a ContentStream, which has a name field. Within HttpSolrServer.java, if SolrJ makes the decision to use multipart posts, this filename is transmitted as part of the form boundary information. However, if SolrJ chooses not to use multipart post, the filename information is lost.

      This information is used by SolrCell (Tika) to make decisions about content extraction, so it is very important that it makes it into Solr in one way or another. Either SolrJ should set appropriate equivalent headers to send the filename automatically, or it should force multipart posts when this information is present.

      Attachments

        1. SOLR-4358.patch
          5 kB
          Ryan McKinley
        2. additional_changes.diff
          3 kB
          Karl Wright
        3. SOLR-4358.patch
          4 kB
          Ryan McKinley
        4. SOLR-4358.patch
          3 kB
          Karl Wright

        Issue Links

          Activity

            People

              ryantxu Ryan McKinley
              kwright@metacarta.com Karl Wright
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: