code: def test_filtered_grouped():
      schema = fields.Schema(
          tag=fields.ID, text=fields.TEXT(stored=True)
      )
      ix = RamStorage().create_index(schema)
      domain = u("alfa bravo charlie delta echo foxtrot").split()
  
      with ix.writer() as w:
          for i, ls in enumerate(permutations(domain, 3)):
              tag = u(str(i % 3))
              w.add_document(tag=tag, text=u(" ").join(ls))
  
      with ix.searcher() as s:
          f = query.And(
              [
                  query.Term("text", "charlie"),
                  query.Term("text", "delta"),
              ]
          )
          r = s.search(
              query.Every(), filter=f, groupedby="tag", limit=None
          )
          assert len(r) == 24
  
imports: from __future__ import with_statement
  from datetime import datetime, timedelta
  import random
  from whoosh import fields, query, sorting, columns
  from whoosh.compat import u
  from whoosh.compat import permutations, xrange
  from whoosh.filedb.filestore import RamStorage
  from whoosh.util.testing import TempIndex
label_desc: Use image node_id 34 for calling a global function with example usage: test_filtered_grouped() without return types