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

search for untagged photos #421

Open
jacekkarczmarczyk opened this issue Jul 16, 2020 · 3 comments
Open

search for untagged photos #421

jacekkarczmarczyk opened this issue Jul 16, 2020 · 3 comments
Assignees

Comments

@jacekkarczmarczyk
Copy link

Feature request for Cloudinary_NPM SDK
…(If your feature is for other SDKs, please request them there)

Explain your use case

I want to find all photos that don't have any tags

Describe the problem you’re trying to solve

The only way now is to search all photos and filter those without tags, which is time consuming

Do you have a proposed solution?

cloudinary.search.expression('tags=[]')

Other

Or maybe it's possible but I had difficulties with finding the example in docs...

@shirlymanor
Copy link

Currently, the only way to get the assets without tags is to iterate on all the resources and get the one that tags are empty. I opened a request on your behalf to our product team to support this feature but no ETA yet.

@MargaretHiatt
Copy link

Any updates on this? It has been 4 years. Not being able to search for untagged items is a huge time sucker.

@skalahasti-cloudinary
Copy link

Hi @MargaretHiatt ,

Thanks for your message.

You should be able to search the assets by providing -tags as shown here:

cloudinary.search.expression('-tags').next_cursor(nextCursor).execute().then(res => {

Please check the documentation and the parameter tags accordingly here:
https://cloudinary.com/documentation/admin_api#expression_fields

Thanks,
Sree

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

No branches or pull requests

5 participants