Jump to content

Sandbox API > Issue with Searching Notes by Keyword - Empty Result Array


Recommended Posts

Hello Evernote Community,

I'm currently working on a project where I need to search for notes in Evernote using specific keywords. However, when I use the search API with the keyword, I'm consistently getting an empty array as the result, even though I know there are notes containing the specified keyword.

Code Example:

// Sample code for searching notes by keyword
// ... (code for authenticating and setting up the client)

const keyword = 'exampleKeyword';
const filter = new Evernote.NoteStore.NoteFilter({
  words: keyword,
});

const resultSpec = new Evernote.NoteStore.NotesMetadataResultSpec({
  includeTitle: true,
  includeCreated: true,
});

const searchResults = await noteStore.findNotesMetadata(authToken, filter, 0, 10, resultSpec);
console.log('Search results:', searchResults);

Thank you in advance for your assistance

Link to comment
  • Evernote Expert

As noted on your other question... We don't generally see many API developers here in these forums. You may need to reach out to the API community...

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...