Solr
  1. Solr
  2. SOLR-3610

After reloading a core, indexing will fail on any newly added fields to the schema.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0-ALPHA
    • Fix Version/s: 4.0-BETA, 5.0
    • Component/s: None
    • Labels:
      None

      Description

      This is just another instantiation of SOLR-3587.

      Because the IndexWriter is kept open, the Codec still uses the old schema, and when asked to index for the field, doesn't know about it and returns an error.

      We could dodge the problem for now by turning off per-field codec support by default, requiring users to turn it on explicitly in solrconfig.xml (like similarity), knowing they are making a tradeoff by doing that (same goes for Similarity if you are using a per-field configuration).

      1. SOLR-3610.patch
        13 kB
        Robert Muir
      2. SOLR-3610.patch
        10 kB
        Robert Muir

        Issue Links

          Activity

          Hide
          Robert Muir added a comment -

          Attached is a patch dodging the problem. I tried cleaning this up to work like similarity (which, if you enable schema-based per-field sim support, has the exact same problem).

          Needs a test.
          Needs checks like what Hoss did in SOLR-3577.

          Show
          Robert Muir added a comment - Attached is a patch dodging the problem. I tried cleaning this up to work like similarity (which, if you enable schema-based per-field sim support, has the exact same problem). Needs a test. Needs checks like what Hoss did in SOLR-3577 .
          Hide
          Robert Muir added a comment -

          updated patch with checks

          Show
          Robert Muir added a comment - updated patch with checks
          Hide
          Robert Muir added a comment -

          I committed this. I think the indexwriter config is a larger issue, so turning this off by default means a majority of people won't get bit by it.

          Show
          Robert Muir added a comment - I committed this. I think the indexwriter config is a larger issue, so turning this off by default means a majority of people won't get bit by it.
          Hide
          Hoss Man added a comment -

          hoss20120711-manual-post-40alpha-change

          Show
          Hoss Man added a comment - hoss20120711-manual-post-40alpha-change
          Hide
          Mark Miller added a comment -

          We should be able to fix this now that SOLR-4417 is in.

          Show
          Mark Miller added a comment - We should be able to fix this now that SOLR-4417 is in.

            People

            • Assignee:
              Robert Muir
              Reporter:
              Robert Muir
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development