The search result will also include all notes related to participants who had the same nickname.So you can also take note for anonymous users (who don't have any consistent JID or occupant-id).You can differenciate them by comparing JID and occupant-id.