Uploaded image for project: 'VuFind'
  1. VuFind
  2. VUFIND-546

use of trie based date field instead of solr.DateField

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None

      Description

      A common boost function used to boost newer document recip(ms(NOW,indexedDateField),3.16e-11,1,1)
      requires that the indexedDateField be Trie based.

      VuFind has 2 fields first_indexed and last_indexed which can be used for boosting newly indexed records. However, because they are declared as solr.DateField, one can not use the above function.

      One can try to use the Dynamic Fields, but that does not work since VuFind dynamic field definition for date type is not Trie based either.

      I am suggesting we use Trie based date field for all date fields, Blacklight appears to be doing that already

      https://github.com/projectblacklight/blacklight-jetty/blob/master/solr/conf/schema.xml#L134

      This would make it simpler for people who want to implement such a boost function without having to modify schema.xml.

      A patch is included here with definition of date/tdate fields lifted from Blacklight schema.xml.

        Attachments

          Activity

            People

            Assignee:
            demiankatz Demian Katz
            Reporter:
            tuan Tuan Nguyen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: