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

Authority control queryValues asks for twice the limit configured

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Volunteer Needed (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.2
    • Fix Version/s: None
    • Component/s: API
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      0
    • Documentation Status:
      Needed

      Description

      The solrAuthority.getExternalValues method asks for twice the limit defined in config / defaults:

      List<AuthorityValue> values = source.queryAuthorities(text, max * 2); // max*2 because results get filtered
      

      The comment says this is because "results get filtered", but I can't see where this happens... perhaps it refers to an earlier version of authority.

      This was picked up while I was testing ORCID v2 API changes... the difference between retrieving 10 bios and 20 bios for search results is significant.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            kshepherd Kim Shepherd
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: