code: def test_multifilter():
      iwf_for_index = analysis.IntraWordFilter(
          mergewords=True, mergenums=False
      )
      iwf_for_query = analysis.IntraWordFilter(
          mergewords=False, mergenums=False
      )
      mf = analysis.MultiFilter(
          index=iwf_for_index, query=iwf_for_query
      )
      ana = analysis.RegexTokenizer() | mf | analysis.LowercaseFilter()
  
      schema = fields.Schema(
          text=fields.TEXT(analyzer=ana, stored=True)
      )
      with TempIndex(schema) as ix:
          w = ix.writer()
          w.add_document(text=u("Our BabbleTron5000 is great"))
          w.commit()
  
          with ix.searcher() as s:
              assert ("text", "5000") in s.reader()
              hit = s.search(query.Term("text", "5000"))[0]
              assert (
                  hit.highlights("text")
                  == 'Our BabbleTron<b class="match term0">5000</b> is great'
              )
  
imports: from __future__ import with_statement
  import pytest
  from whoosh import analysis, highlight, fields, qparser, query
  from whoosh.compat import u
  from whoosh.filedb.filestore import RamStorage
  from whoosh.util.testing import TempIndex
label_desc: Use image node_id 12 for calling a global function with example usage: test_multifilter() without return types