Skip to content
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

imagelicence cannot search for things within multiple licenses #5

Open
ticky opened this issue Jan 1, 2017 · 1 comment
Open

imagelicence cannot search for things within multiple licenses #5

ticky opened this issue Jan 1, 2017 · 1 comment

Comments

@ticky
Copy link
Contributor

ticky commented Jan 1, 2017

Due to the way it’s implemented, it doesn’t appear to be possible to find things which have one of several licenses. A query such as http://collections.museumvictoria.com.au/api/search?envelope=true&imagelicence=public+domain&imagelicence=cc+by finds only items which contain at least one image each licensed as public domain and cc-by, while searching for each imagelicence value individually reveals there are many more applicable items (i.e. http://collections.museumvictoria.com.au/api/search?envelope=true&imagelicence=public+domain reveals 35,486 items with public-domain pictures, versus the 230 returned by the above query).

While I understand that in some cases this behaviour is likely desirable, in my use case (wanting to find anything which has images which are reusable elsewhere) it’s not very helpful, as it means I may need to hit the API several times to make sure I can access the items I’m interested in.

@michael-mason
Copy link
Member

Yea, I deliberately chose to only allow AND queries as OR queries lead to 0 result sets... this is something that other people have raised before so its not off the cards to allow OR queries as a sort of advanced option as I know hitting the API multiple times insnt ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants