code: def test_filter_that_matches_no_document():
      schema = fields.Schema(id=fields.STORED, text=fields.TEXT)
      ix = RamStorage().create_index(schema)
      w = ix.writer()
      w.add_document(id=1, text=u("alfa bravo charlie"))
      w.add_document(id=2, text=u("alfa bravo delta"))
      w.commit()
  
      with ix.searcher() as s:
          r = s.search(
              query.Every(), filter=query.Term("text", u("echo"))
          )
          assert [hit["id"] for hit in r] == []
          assert len(r) == 0
  
file_path: whoosh/tests/test_collector.py
imports: from __future__ import with_statement
  import pytest
  from whoosh import collectors, fields, query, searching
  from whoosh.compat import u, xrange
  from whoosh.filedb.filestore import RamStorage
  from whoosh.util.testing import TempIndex
label_desc: Use image node_id 2 for calling a global function with example usage: test_filter_that_matches_no_document() without return types