VuFind
  1. VuFind
  2. VUFIND-656

Enable sitemapping of multiple cores/indices

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None

      Description

      Hi, as mentioned before, we're looking at exposing a separate Solr core as a module within our main instance. This caused a problem - how do we ensure search engine indexing of this module through a sitemap? This led me to do some refactoring of the sitemap.php tool. I have added a section to sitemap.ini where the user has the option to specify additional indices or cores. The sitemap tool then gathers links for each of these indices.

      Let me know if you are interested in this, further refactoring might include better separation of the querying and writing aspects of the megamethod.
      1. first_pass.patch
        9 kB
        Ronan McHugh
      2. sitemap-dk.patch
        10 kB
        Demian Katz

        Activity

        Hide
        Demian Katz added a comment -
        I'm attaching a second pass at this functionality (sitemap-dk.patch). I fixed a significant bug (the sitemap page counter wasn't incrementing across indexes, so some of the sitemap files were overwriting each other) and did a bit of cleanup (including changing the "index" config setting to "extra_index" for greater clarity).

        I'm not going to commit this yet -- I need to think about how it should work in VuFind 2.0. Since Solr connections may end up working a little differently in 2.0, we may need to change the configuration settings for this patch a little bit. I don't want to make this layout official until I'm confident that the 1.x settings can move forward cleanly to 2.0.
        Show
        Demian Katz added a comment - I'm attaching a second pass at this functionality (sitemap-dk.patch). I fixed a significant bug (the sitemap page counter wasn't incrementing across indexes, so some of the sitemap files were overwriting each other) and did a bit of cleanup (including changing the "index" config setting to "extra_index" for greater clarity). I'm not going to commit this yet -- I need to think about how it should work in VuFind 2.0. Since Solr connections may end up working a little differently in 2.0, we may need to change the configuration settings for this patch a little bit. I don't want to make this layout official until I'm confident that the 1.x settings can move forward cleanly to 2.0.
        Hide
        Demian Katz added a comment -
        The VuFind 2 architecture allowed a much simpler design/configuration. See https://github.com/vufind-org/vufind/commit/b60a354d311447cd450cd322782d2523cbdc0a81 for details.
        Show
        Demian Katz added a comment - The VuFind 2 architecture allowed a much simpler design/configuration. See https://github.com/vufind-org/vufind/commit/b60a354d311447cd450cd322782d2523cbdc0a81 for details.

          People

          • Assignee:
            Demian Katz
            Reporter:
            Ronan McHugh (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: