code: def test_name_field():
      ana = (
          analysis.RegexTokenizer(r"\S+")
          | analysis.LowercaseFilter()
          | analysis.DoubleMetaphoneFilter(combine=True)
      )
      namefield = fields.TEXT(analyzer=ana, multitoken_query="or")
      schema = fields.Schema(id=fields.STORED, name=namefield)
  
      ix = RamStorage().create_index(schema)
      w = ix.writer()
      w.add_document(id=u("one"), name=u("Leif Ericson"))
      w.commit()
  
      s = ix.searcher()
      qp = qparser.QueryParser("name", schema)
      q = qp.parse(u("leaf eriksen"), normalize=False)
      r = s.search(q)
      assert len(r) == 1
  
imports: from __future__ import with_statement
  import pytest
  from whoosh import analysis, fields, qparser
  from whoosh.compat import b, u, unichr
  from whoosh.compat import dumps
  from whoosh.filedb.filestore import RamStorage
label_desc: Use image node_id 23 for calling a global function with example usage: test_name_field() without return types