Uploaded image for project: 'Stanbol (Retired)'
  1. Stanbol (Retired)
  2. STANBOL-1081

ReferencedSolrServer does not work with Solr 4

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Commons
    • None

    Description

      The ReferencedSolrServer is not yet functional to the Solr 4 related changes in the commons.solr module. This is because in the case of the ReferencedSolrServer SolrCores are initialized in the constructor of the SolrServerAdapter (commons.solr.core), but this does not yet ensure that the OsgiSolrResourceLoader is used in that process. Because of that the ReferencedSolrServer can not load SolrCores that do use Analyzers that are not directly contained in the commons.solr.core bundle (e.g. ICU, SmartCN, ...)

      To solve this on needs to generalize the solution used to manually register SolrCores so that it does work for any SolrCore created by the CoreContainer (wrapped by the SolrServerAdapter).

      After some investigation it looks like overriding the "create(CoreDescriptor cd) : SolrCore" would be the best option to achieve this goal. Parsing the OsgiSolrResourceLoader in the constructor of the CoreContainer does not work as this is overridden by the CoreContainer.load(..) method.

      Attachments

        Activity

          People

            rwesten Rupert Westenthaler
            rwesten Rupert Westenthaler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: