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 discussion has been closed.
There's currently no equivalent to the client's Everything mode in the API.
qmode=everything
means "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=
.)