Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-8390

Solr schema is common to all cores

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.1.0
    • 4.1.0
    • Plugin : Search, Solr
    • None
    • 4.1 M3

      WIll unlikely cause some problem in project environnement.
      But in dev environnement, when using ONE instance of Solr with multiple cores, it is very annoying;

      Typical problem that occurs :

      1. Launch a global indexation on a Web application (Template Web for instance). Search is working properly.
      2. Then, switch to a CMS-only application (Template Data for instance). Search is working properly.
      3. Re-switch to the Web application (Template Web for instance). Launch a search. It causes an error like Error from server at http://localhost:8983/solr: undefined field site. I have to relauch a global indexation just because of the schema which was resent by CMS-only application.

      It seems that schema is shared between all cores.

          [CMS-8390] Solr schema is common to all cores

          when done, do not forget to modify tests, when they create a core they will no longer set the configSet "ametys-standard"

          Simon Prieul (Inactive) added a comment - when done, do not forget to modify tests, when they create a core they will no longer set the configSet "ametys-standard"

          To think about :

          1. duplicate ConfigSet before creating cores (in order to have a "template of configSet" named ametys-standard) ? with copy of files in a RequestHandler, to create for each core a different configSet named ametys-standard-prefix for instance

          Simon Prieul (Inactive) added a comment - To think about : duplicate ConfigSet before creating cores (in order to have a "template of configSet" named ametys-standard ) ? with copy of files in a RequestHandler, to create for each core a different configSet named ametys-standard-prefix for instance

            sprieul Simon Prieul (Inactive)
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: