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

Re-using data-driven configsets by default is not helpful

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.0
    • 5.0, 6.0
    • Schema and Analysis
    • None

    Description

      When creating collections (I'm using the bin/solr scripts), I think we should automatically copy configsets, especially when running in "getting started mode" or data driven mode.

      I did the following:

      bin/solr create_collection -n foo
      bin/post foo some_data.csv
      

      I then created a second collection with the intention of sending in the same data, but this time run through a python script that changed a value from an int to a string (since it was an enumerated type) and was surprised to see that I got:

      Caused by: java.lang.NumberFormatException: For input string: "NA"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      at java.lang.Long.parseLong(Long.java:441)

      for my new version of the data that passes in a string instead of an int, as this new collection had only seen strings for that field.

      Attachments

        1. SOLR-6952.patch
          14 kB
          Timothy Potter
        2. SOLR-6952.patch
          26 kB
          Timothy Potter

        Issue Links

          Activity

            People

              thelabdude Timothy Potter
              gsingers Grant Ingersoll
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: