Api request : top items with tag constraint

50 views
Skip to first unread message

Hédi Chaibi

unread,
Mar 2, 2018, 11:18:26 AM3/2/18
to zotero-dev
Hi all,

I am struggling with the zotero api to make my request work as i want to.

I want to query top items in a group library, but without the items containing a "tag1" tag.

=> this call gives me only top items that contain "tag1", so this is ok.

=> this call gives me top items that may contain a "tag1" tag, so this is not working as intended.

I don't have this problem when querying all items (not only top items):

=> only items that don't contain "tag1"

Is it a bug or a missing feature?

If this is a bug, where can i report it?

thanks

Hédi Chaibi

unread,
Mar 10, 2018, 6:57:24 AM3/10/18
to zotero-dev
Hi,

I have setup a public test library to explain the problem in details : https://www.zotero.org/groups/617417/test-group-1/items

The group library contains only 2 items:
item1 has two tags: tag1, tag2
item2 has one tag: tag2

Here are the api calls, everybody can test it, it is a public group/library:

=> I get item1, as expected

=> I get item1 and item2, as expected

=> I get item1 and item2. I should get only item2 because item1 contains tag1

The search syntax for tags described in the api documentation is not working as intended: https://www.zotero.org/support/dev/web_api/v3/basics#search_syntax
The NOT operator do nothing (tag=-foo)

Dan Stillman

unread,
Mar 13, 2018, 2:29:08 AM3/13/18
to zoter...@googlegroups.com
Fixed. Thanks for reporting.
Reply all
Reply to author
Forward
0 new messages