evernote-sdk-java icon indicating copy to clipboard operation
evernote-sdk-java copied to clipboard

NoteStoreClient.findNotes() does not find notes

Open windsource opened this issue 5 years ago • 1 comments

I am using the Evernote Java SDK with the sandbox account to create a note and search for it.

Note mynote = new Note();
mynote.setTitle("mytitle");
mynote.setContent(content);
Note createdNote = noteStore.createNote(mynote);

NoteFilter filter = new NoteFilter();
String query = "mytitle";
filter.setWords(query);

NoteList notelist = noteStore.findNotes(filter, 0, 10);

The creation of the note works fine but unfortunately findNotes() just returns an empty list. The same code worked some months ago but now it doesn't anymore.

windsource avatar Nov 01 '19 11:11 windsource

The same issue here, whether on Sandbox or Production mode. Well, it seems that Evernote takes some time to build search index on server. You'd better don't rely on it.

ionull avatar Jun 05 '20 02:06 ionull