[VUFIND-23] Break search specifications out of Solr.php into an external file Created: 29/Oct/08 Updated: 08/Jan/10 Resolved: 08/Jan/10 |
|
Status: | Closed |
Project: | VuFind® |
Components: | Search |
Affects versions: | 1.0RC2 |
Fix versions: | 1.0RC2 |
Type: | Improvement | Priority: | Major |
Reporter: | Bill Dueber | Assignee: | Demian Katz |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original estimate: | Not Specified |
Attachments: | FIXED_use_yaml_config_for_searchspecs.patch searchspecs.yaml |
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. |
Comments |
Comment by Bill Dueber [ 29/Oct/08 ] |
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. |
Comment by Demian Katz [ 21/Oct/09 ] |
Implemented in r1662. |