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

solr-export-statistics / solr-import-statistics inconsistencies

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.6, 6.1, 7.0
    • Fix Version/s: 5.7, 6.1
    • Component/s: API
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      3
    • Documentation Status:
      Needed

      Description

      The usage information for solr-export-statistics / solr-import-statistics exposes the underlying class. The action parameter is confusing based on the name of the commands.

      Is the repo "statistics" implied if -i is not present? If not, there is no error message indicating that -i was not supplied.

      [dspace@dspace-test-1 solr-export]$ /opt/dspace/bin/dspace solr-export-statistics -h
      usage: SolrImportExport

      a,-action <arg> The action to perform: import, export or reindex.
      Default: export.
      c,-clear When importing, also clear the index first.
      Ignored when action is export or reindex.
      d,-directory <arg> The absolute path for the directory to use for
      import or export. If omitted,
      [dspace]/solr-export is used.
      h,-help Get help on options for this command.
      i,-index-name <arg> The names of the indexes to process. At least one
      is required. Available indexes are: authority,
      statistics.
      k,-keep When reindexing, keep the contents of the data
      export directory. By default, the contents of
      this directory will be deleted once the reindex
      has finished. Ignored when action is export or
      import.
      l,-last <arg> When exporting, export records from the last
      [timeperiod] only. This can be one of: 'd'
      (beginning of yesterday through to now); 'm'
      (beginning of the previous month through to end
      of the previous month); a number, in which case
      the last [number] of days are exported, through
      to now (use 0 for today's data). Date calculation
      is done in UTC. If omitted, all documents are
      exported.
      [dspace@dspace-test-1 solr-export]$ /opt/dspace/bin/dspace solr-import-statistics -h
      usage: SolrImportExport

      a,-action <arg> The action to perform: import, export or reindex.
      Default: export.
      c,-clear When importing, also clear the index first.
      Ignored when action is export or reindex.
      d,-directory <arg> The absolute path for the directory to use for
      import or export. If omitted,
      [dspace]/solr-export is used.
      h,-help Get help on options for this command.
      i,-index-name <arg> The names of the indexes to process. At least one
      is required. Available indexes are: authority,
      statistics.
      k,-keep When reindexing, keep the contents of the data
      export directory. By default, the contents of
      this directory will be deleted once the reindex
      has finished. Ignored when action is export or
      import.
      l,-last <arg> When exporting, export records from the last
      [timeperiod] only. This can be one of: 'd'
      (beginning of yesterday through to now); 'm'
      (beginning of the previous month through to end
      of the previous month); a number, in which case
      the last [number] of days are exported, through
      to now (use 0 for today's data). Date calculation
      is done in UTC. If omitted, all documents are
      exported.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                terrywbrady Terry Brady
                Reporter:
                terrywbrady Terry Brady
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: