code: def test_globfield_length_merge():
      # Issue 343
  
      schema = fields.Schema(
          title=fields.TEXT(stored=True), path=fields.ID(stored=True)
      )
      schema.add("*_text", fields.TEXT, glob=True)
  
      with TempIndex(schema, "globlenmerge") as ix:
          with ix.writer() as w:
              w.add_document(
                  title=u("First document"),
                  path=u("/a"),
                  content_text=u(
                      "This is the first document we've added!"
                  ),
              )
  
          with ix.writer() as w:
              w.add_document(
                  title=u("Second document"),
                  path=u("/b"),
                  content_text=u(
                      "The second document is even more interesting!"
                  ),
              )
  
          with ix.searcher() as s:
              docnum = s.document_number(path="/a")
              assert (
                  s.doc_field_length(docnum, "content_text") is not None
              )
  
              qp = qparser.QueryParser("content", schema)
              q = qp.parse("content_text:document")
              r = s.search(q)
              paths = sorted(hit["path"] for hit in r)
              assert paths == ["/a", "/b"]
  
imports: from __future__ import with_statement
  import random
  from collections import defaultdict
  from datetime import datetime
  import pytest
  from whoosh import analysis, fields, index, qparser, query, __version__
  from whoosh.compat import b, u, xrange, text_type, permutations
  from whoosh.filedb.filestore import RamStorage
  from whoosh.writing import IndexingError
  from whoosh.util.numeric import length_to_byte, byte_to_length
  from whoosh.util.testing import TempIndex, TempStorage
label_desc: Use image node_id 28 for calling a global function with example usage: test_globfield_length_merge() without return types