Filtering in projects: exclude notes with references

In order to filter a project board for cards that aren’t notes, the filter commands
-is:note
-type:note
can be used (the leading dash is the “not”). That works fine, except for those notes that contain #-references to issues. Why? How can these notes be excluded when filtering?
Many thanks for advice.