.filter(res=>res.noteId!==note.noteId);// this is necessary because title of the search note is often the same as the search text which would match and create circle
constnoteIds=results.map(res=>res.noteId);
console.log("result: ",results);
// force to load all the notes at once instead of one by one