Searching with REST / two metadata fields

28 views
Skip to first unread message

Rufus

unread,
Feb 23, 2020, 8:15:50 AM2/23/20
to DSpace Community
Hi everyone,

is it possible to search on a DSpace repository with REST, using two metadata fields simultaneously? Or do I have to put each query separately?

Thanks in advance,

Rufus


Tim Donohue

unread,
Feb 24, 2020, 1:11:44 PM2/24/20
to Rufus, DSpace Community
Hi Rufus,

In DSpace 5.x or 6.x, the DSpace REST API doesn't support searching (it only supports basic browsing and CRUD activities).  However, if your Solr backend is accessible, Solr has its own REST API capable of being searched (but it isn't aware of the DSpace object model obviously).

Here's info on the DSpace 6 REST API features: https://wiki.lyrasis.org/display/DSDOC6x/REST+API

In the upcoming DSpace 7.x release, the REST API supports searching across multiple fields (or using multiple filters). It supports any query that is a valid Lucene/Solr query.  See the early 7.x REST API docs at https://github.com/DSpace/Rest7Contract/blob/master/search-endpoint.md#matching-dspace-objects-search-results

Tim

From: dspace-c...@googlegroups.com <dspace-c...@googlegroups.com> on behalf of Rufus <rufus...@gmail.com>
Sent: Sunday, February 23, 2020 7:15 AM
To: DSpace Community <dspace-c...@googlegroups.com>
Subject: [dspace-community] Searching with REST / two metadata fields
 
--
All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-communi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-community/99a4f101-25f7-445f-ae08-9705b6348068%40googlegroups.com.

Rufus

unread,
Feb 25, 2020, 12:05:11 PM2/25/20
to DSpace Community
Hi Tim,

thanks a lot for your answer. I didn't mean a "real" search, I was only thinking if it is possible to get two metadata fields by using the exact name of the metadata fields and GET. Is that possible?
And there is another question: I try to use DSpace from an other application. Is it possible to query two DSpace repositories (i.e. two sources that have to be mapped separately) simultaneously?
Reply all
Reply to author
Forward
0 new messages