Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-1237

Support date ranges in advanced search

    Details

    • Attachments:
      2
    • Comments:
      6
    • Documentation Status:
      Needed

      Description

      This proposed extension (implemented by National Documentation Centre/EKT - http://www.ekt.gr) allows date range search in advance search. When a search index is declared as a "date" search index in configuration file, then, when selected in advance search drop down lists, a new drop down list appears to select the range type (equals, before than, after than or between) and the appropriate fields appear to the user to input the date ranges for the search.
      The date range search is based on Lucene's range search mechanism.
      The only limitation of this extension is that the companison is String-based meaning that it works better if the metadata value in the date fields are saved in the format yyyy-mm-dd.

      USEFULNESS
      ---------------------
      In case you want to search for records that are dated within a period of time, you can use this extension to add this functionality in DSpace's advance search.

      CONFIGURATION FILES
      ---------------------------------------
      In the default configuration file of DSpace (dspace.cfg) just declare the search indices that you want to be of type date, as follows:

      #Declare the indices that are of type date and want to have ranges in searching
      search.index.date.1 = date

      EXAMPLES
      ------------
      Repository: http://phdtheses.ekt.gr/eadd/advanced-search
      Note: Select search by date and then a new option drop-down menu appears

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kstamatis Kostas Stamatis
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: