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

Query not finding all materials #30

Open
linktozelda opened this issue Apr 12, 2017 · 4 comments
Open

Query not finding all materials #30

linktozelda opened this issue Apr 12, 2017 · 4 comments

Comments

@linktozelda
Copy link

zotcli query [QUERY] does not seem to be searching the entire DB.

It seems to primarily be searching in item titles, rather than authors as well. While it finds journal articles quite easily, it seems to have a much more difficult time finding books.

The issue may also have to do with the date at which the itmes were added. Zotcli seems to be fine with most recent additions to the DB, but not returning anything for items added more than a few months ago. Have tried using the "-v" option, but query is not spitting anything out for these searches.

@jbaiter
Copy link
Owner

jbaiter commented Apr 12, 2017

Would you be willing to upload your zotero-cli index somewhere so I can analyze this issue? It's located in ~/.config/zotcli/index.sqlite.

@woutersj
Copy link

My index.sqlite has only 100 entries in the 'items' table. These seem to be the only ones I can search.

@jbaiter
Copy link
Owner

jbaiter commented Aug 17, 2017

I noticed the same thing, seems to be some interplay between the PyZotero library and some server-side API changes. I implemented a workaround in 273fb9b, can you please update from the GitHub master, remove your ~/.config/zotcli/index.sqlite and run zotcli sync. Your index should then contain all of your items.

@woutersj
Copy link

Great, that seems to have done! Thanks!

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

3 participants