private void searchNotes(String keyWord){
  ActiveAccount activeAccount=activeAccountRepository.getActiveAccount();
  List<Note> notes=notesRepository.searchNotes(activeAccount.getAccount(),activeAccount.getRootFolder(),keyWord,Utils.getNoteSorting(activity));
  mAdapter.clearNotes();
  mAdapter.addNotes(notes);
  mSearchKeyWord=keyWord;
}

private void searchNotes ( String keyWord ) { ActiveAccount activeAccount = activeAccountRepository . getActiveAccount ( ) ; List < Note > notes = notesRepository . searchNotes ( activeAccount . getAccount ( ) , activeAccount . getRootFolder ( ) , keyWord , Utils . getNoteSorting ( activity ) ) ; mAdapter . clearNotes ( ) ; mAdapter . addNotes ( notes ) ; mSearchKeyWord = keyWord ; }
this function searches all the note that fit the key word , at the moment , the query only apply for the note summary , but it can be expanded to filter more . the notes from all notebooks which matched the query will be update to the view for the user .
