evernote-sdk-java
evernote-sdk-java copied to clipboard
NoteStoreClient.findNotes() does not find notes
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.
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.