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

SolrIndexSearcher still uses old schema after schema update using schema-api

    XMLWordPrintableJSON

Details

    Description

      When adding a new field to the schema using schema-api, the new field is not known by the current SolrIndexSearcher. In SolrCloud any core gets reloaded after the new schema is persisted, this does not happen in case of stand alone HTTP Solr server or EmbeddedSolrServer.

      So currently an additional commit is necessary to open a new SolrIndexSearcher using the new schema.

      Fix is really easy: Just reload the core!

      Attachments

        Issue Links

          Activity

            People

              dsmiley David Smiley
              thomas.woeckinger Thomas Wöckinger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 20m
                  3h 20m