Searching for an item via API - results differ from client (?)
Hi all,
If I search for an item key (e.g., ZAKRMJ4F) in the client application (with setting 'everything'), e.g. the item will be found; moreover, if the 'extra' field matches, then the item is also found.
However, when I do this:
```
https://api.zotero.org/groups/2129771/items?qmode=everything&includeTrashed=0&q=ZAKRMJ4F
```
the item is not found. It's also not found if a matching string (e.g., ZAKRMJ4F is in the extra field).
Is this correct, or am I doing something wrong?
Many thanks!
If I search for an item key (e.g., ZAKRMJ4F) in the client application (with setting 'everything'), e.g. the item will be found; moreover, if the 'extra' field matches, then the item is also found.
However, when I do this:
```
https://api.zotero.org/groups/2129771/items?qmode=everything&includeTrashed=0&q=ZAKRMJ4F
```
the item is not found. It's also not found if a matching string (e.g., ZAKRMJ4F is in the extra field).
Is this correct, or am I doing something wrong?
Many thanks!
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
This discussion has been closed.
Upgrade Storage
There's currently no equivalent to the client's Everything mode in the API.
qmode=everythingmeans "Title, Creator, Year + Full-Text Content", as it says in web library drop-down. It won't search other fields. It'll be expanded to do so in the future.…/items/[itemKey]or…/items?itemKey=[itemKey], notq=.)