losubuntu
losubuntu

Reputation: 23

Using solr query on dspace to get items in specific collection

I want to get list of items in specific collection.

This returns list of items solr/search/select?q=search.resourcetype:2 and this one solr/search/select?q=search.resourcetype:4 list of collections. But what i want is list of items in xyz collection. what is the appropriate query to accomplish this. Thank you

Upvotes: 0

Views: 679

Answers (1)

Antoine Snyers
Antoine Snyers

Reputation: 694

If 17 is the collection id then add &fq=location:l17

solr/search/select?q=search.resourcetype:2&fq=location:l17

or &fq=location.coll:17

solr/search/select?q=search.resourcetype:2&fq=location.coll:17

for communities it's &fq=location:m17 or &fq=location.comm:17

Upvotes: 2

Related Questions