New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hasimage not working properly #9
Comments
The See also related comments in #6 (comment). |
I'm hitting this issue every few images even with a query string that contains the params mentioned in the fix threads: Ex:
|
You must use the |
@jeffsteward Great thanks for clarifying! All looks good now 👍 |
I'm still getting this issue even with the permission level parameter? Would love another set of eyes on it: |
@heatherca Some of the parameters in your query won't work. https://api.harvardartmuseums.org/object?apikey=[mykey]&hasimage=1&sort=random&q=imagepermissionlevel:0 AND primaryimageurl:*&person=any&keyword=sun That being said, I think you found a bug in our query logic. When I run the reformatted query I get more records than expected. I need to investigate further. |
That was my bad I was trying to throw more things onto to get it to work. I think the main issue was that q was being overridden by keyword. When I commented out keyword in my call all the results would have the correct imagepermissionlevel:0. I ended up using title instead of keyword which didn't have the same issue. Would still get imagepermissionlevel not equal to zero: |
Thanks for the additional info. All signs point to a bad implementation of the keyword parameter. I'm going to log a new issue. |
https://api.harvardartmuseums.org/object&hasimage=1&gallery=1320
then it's returning a lot data but all data don't have image
"images": [],
"primaryimageurl": null,
that's not what i excepted. How can i handle this problem ?
The text was updated successfully, but these errors were encountered: