Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
indexing:tracking_record_changes [2015/12/21 16:51] – ↷ Links adapted because of a move operation demiankatz | indexing:tracking_record_changes [2016/08/30 16:26] – demiankatz |
---|
===== Enabling Change Tracking ====== | ===== Enabling Change Tracking ====== |
| |
The most important thing that you need to do in order to enable VuFind's change tracking is to edit the [[indexing:solrmarc:local_marc_mappings|local MARC mappings]] file and uncomment the lines that fill in the "first_indexed" and "last_indexed" fields of your Solr index. | The most important thing that you need to do in order to enable VuFind's change tracking is to edit the [[indexing:solrmarc:local_marc_mappings|local MARC mappings]] file and uncomment the lines that fill in the "first_indexed" and "last_indexed" fields of your Solr index. If you are using VuFind 2.x or higher, this usually consists of: |
| |
If you are indexing non-MARC records, some change tracking facilities also exist in the [[indexing:xml|XSLT index tool]]. For example, the VuDL importer supports change tracking if you edit [[https://vufind.svn.sourceforge.net/svnroot/vufind/trunk/import/vudl.properties|import/vudl.properties]]. | 1. Copy import/marc_local.properties into the import subdirectory of your [[configuration:local_settings_directory]] (usually $VUFIND_HOME/local/import), if you don't already have a local copy of marc_local.properties. |
| |
| 2. Uncomment the *_indexed lines in the local copy of marc_local.properties. |
| |
| If you are indexing non-MARC records, some change tracking facilities also exist in the [[indexing:xml|XSLT index tool]]. Depending on your data source, you may need to customize your XSLT and/or properties file to implement support. |
| |
After making the necessary configuration changes, you will need to reindex all of your records. This will take a long time, as it will be generating a database so that VuFind can correctly populate these fields in the future. "first_indexed" contains the time that the record was first indexed by VuFind, while "last_indexed" contains the time that the record was most recently changed. VuFind stores information in its database so that even if you upgrade Solr and destroy your entire index, it will still be able to rebuild the correct "first_indexed" and "last_indexed" values. In the future, when you reindex existing records, the process should be faster than the first time around, since for records that have not actually changed, VuFind will not have to do much extra database work. | After making the necessary configuration changes, you will need to reindex all of your records. This will take a long time, as it will be generating a database so that VuFind can correctly populate these fields in the future. "first_indexed" contains the time that the record was first indexed by VuFind, while "last_indexed" contains the time that the record was most recently changed. VuFind stores information in its database so that even if you upgrade Solr and destroy your entire index, it will still be able to rebuild the correct "first_indexed" and "last_indexed" values. In the future, when you reindex existing records, the process should be faster than the first time around, since for records that have not actually changed, VuFind will not have to do much extra database work. |
| |
Note that you can customize some of the RSS behavior in VuFind -- see the [RSS] section of [[configuration:files:searches.ini]]. | Note that you can customize some of the RSS behavior in VuFind -- see the [RSS] section of [[configuration:files:searches.ini]]. |
| |
| ===== Solr-driven New Items ===== |
| |
| :!: This feature was added in VuFind 2.3. |
| |
| By default, VuFind tries to use the ILS driver to power the "new items" search. However, not all ILS drivers support this functionality. If you turn on record change tracking, you can modify the method setting to "solr" in the [NewItem] section of [[configuration:files:searches.ini|searches.ini]] to gain new item searches without an ILS dependency. |
---- struct data ---- | ---- struct data ---- |
---- | ---- |
| |