WSULib / ouroboros

:snake: Ouroboros: python middleware for WSU digital collections infrastructure
3 stars 1 forks source link

APIv2: Integration of `item` information in search results #35

Closed ghukill closed 7 years ago

ghukill commented 7 years ago

Our approach until now has been to use mostly raw Solr search results to power the front-end. The advantages being that it's fast and conceptually quite simple.

There are a few disadvantages:

  1. Using Solr to explore relationships: When we browse a collection, we are using RELS-EXT relationships as coded in Solr. This is okay most of the time, but perhaps not always optimal?
  2. There is no connection to more thorough item metadata for items in search result.

One possible, easy to implement solution:

After solr search results, of any kind, interweave URLs for an single item response into the search results. Result would be something like...

{
    dc_title: "foobar",
    id: "wayne:vmc14515",
    ....
    single_item_metadata: "http://192.168.42.6/WSUAPI/item/wayne:vmc15687"
}
ghukill commented 7 years ago

Done.