VuFind
  1. VuFind
  2. VUFIND-23

Break search specifications out of Solr.php into an external file

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0RC2
    • Fix Version/s: 1.0RC2
    • Component/s: Search
    • Labels:
      None

      Description

      I've broken out the search specs into a yaml file (to be put in web/conf/searchspecs.yaml) for easier changes.

      It requires:
        - the attached file searchspecs.yaml to be in web/conf/
        - the patch (against 1139) to web/sys/Solr.php that is also attached
        - installation of Horde/Yaml (using the commands: pear channel-discover pear.horde.org; pear install horde/yaml)

      The searchspecs.yaml file is pretty-well documented.

      One of the nice parts of this is that any new search, so long as it doesn't need to modify the search string (as, for example, the 'isn' search does) will Just Work if you pass in its name as the field.

        Activity

        Hide
        Bill Dueber added a comment -
        Yeah, OK, I uploaded another slighly-broken patch.

        This time I've got a fixed patch which includes a change to index.php (setting up autoload for the yaml library) and a slightly-changed Solr.php (take out ref to non-existent library, add changes for isn search) and a new .yaml file that takes advantage of the changes.
        Show
        Bill Dueber added a comment - Yeah, OK, I uploaded another slighly-broken patch. This time I've got a fixed patch which includes a change to index.php (setting up autoload for the yaml library) and a slightly-changed Solr.php (take out ref to non-existent library, add changes for isn search) and a new .yaml file that takes advantage of the changes.
        Hide
        Demian Katz added a comment -
        Implemented in r1662.
        Show
        Demian Katz added a comment - Implemented in r1662.

          People

          • Assignee:
            Demian Katz
            Reporter:
            Bill Dueber
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: