Faceted search with REUSABILITY not working

6 views
Skip to first unread message

Ivan Magdić

unread,
Oct 31, 2017, 10:23:54 AM10/31/17
to Europeana API forum
Is there a problem with faceted search using "REUSABILITY" ?

I'm trying the following request:
https://www.europeana.eu/api/v2/search.json/?query=%22Leonardo%22&wskey=API_KEY&qf=REUSABILITY%3Aopen

It is returning zero items.

Response:
{
    "apikey": "API_KEY",
    "success": true,
    "requestNumber": 999,
    "totalResults": 0,
    "items": []
}

When I try similar request it works, example:
https://www.europeana.eu/api/v2/search.json/?query=%22Leonardo%22&wskey=API_KEY&qf=LANGUAGE%3Afr

Response:
{
    "apikey": "API_KEY",
    "success": true,
    "requestNumber": 999,
    "itemsCount": 12,
    "totalResults": 168,
    "items": [...]
}

Am I doing something wrong ?


James Morley

unread,
Oct 31, 2017, 2:39:14 PM10/31/17
to europe...@googlegroups.com
Hi Ivan

I just had to remind myself of this - rather than a standard facet you pass the query as its own parameter i.e. &reusability=open


I don't know if you use the API console to test queries - https://pro.europeana.eu/resources/apis/europeana-rest-api#console - but this makes it more apparent.

Other similar parameters, particularly around media metadata, can be found at https://pro.europeana.eu/resources/apis/europeana-rest-api#search

Best, James
On 31 October 2017 at 14:23, Ivan Magdić <magdic...@gmail.com> wrote:
Is there a problem with faceted search using "REUSABILITY" ?

I'm trying the following request:
https://www.europeana.eu/api/v2/search.json/?query=%22Leonardo%22&wskey=API_KEY&qf=REUSABILITY%3Aopen

It is returning zero items.

Response:
{
    "apikey": "API_KEY",
    "success": true,
    "requestNumber": 999,
    "totalResults": 0,
    "items": []
}

When I try similar request it works, example:


Response:
{
    "apikey": "API_KEY",
    "success": true,
    "requestNumber": 999,
    "itemsCount": 12,
    "totalResults": 168,
    "items": [...]
}

Am I doing something wrong ?


--
Visit Europeana Labs for API Documentation, Open Datasets, and our Apps Showcase - http://labs.europeana.eu
---
You received this message because you are subscribed to the Google Groups "Europeana API forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to europeanaAPI+unsubscribe@googlegroups.com.
To post to this group, send email to europe...@googlegroups.com.
Visit this group at https://groups.google.com/group/europeanaAPI.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages