Hi all,

I'm using:

DSpace 4.1
Tomcat 7
Apache 2.2
OpenJDK 1.7
PostGreSQL 8.4

I need to obtain a list of all authors from the database with each of their 
publications' persistent identifiers (DOIs/Handles/other URIs).

With Solr, I tried this:

/solr/search/select?q=*%3A*&fl=dc.contributor.author%2C+dc.identifier.uri&wt=json&indent=true

and I got:

  "docs": [
      {
        "dc.contributor.author": [
          "Sellens, Emily",
          "Norris, Jacqueline M.",
          "Dhand, Navneet K.",
          "Heller, Jane",
          "Hayes, Lynne",
          "Gidding, Heather F.",
          "Willaby, Harold",
          "Wood, Nicholas",
          "Bosward, Katrina L."
        ],
        "dc.identifier.uri": [
          "http://hdl.handle.net/2123/14098";,
          "http://dx.doi.org/10.4227/11/565e5d044f8d9";
        ]
      },
      {
        "dc.contributor.author": [
          "Surian, Didi"
        ],
        "dc.identifier.uri": [
          "http://hdl.handle.net/2123/14014";
        ]
      },


etc..

However I'd like the results sorted by individual author. So for example, 
the first record above should be broken up into individual authors like so:

  "docs": [
      {
        "dc.contributor.author": [
          "Sellens, Emily"
         ],
        "dc.identifier.uri": [
          "http://hdl.handle.net/2123/14098";,
          "http://dx.doi.org/10.4227/11/565e5d044f8d9";
        ]
      },
      {
        "dc.contributor.author": [
          "Norris, Jacqueline M."
         ],
        "dc.identifier.uri": [
          "http://hdl.handle.net/2123/14098";,
          "http://dx.doi.org/10.4227/11/565e5d044f8d9";
        ]
      },
etc...

Where can I find some documentation on sort parameters in Solr (with reference 
to DSpace)? Everything I try (eg: author) gives me the following error:


Can't determine a Sort Order (asc or desc) in sort spec 'author'. 
Alternatively, would I be better off doing this using SQL (seems like more work 
to me)?

Thanks a lot,
Gary

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to