code: def _parse_prefix_query(self, query_str):
          
          sp = smart_parsing.PrefixSmartParser()
          query = sp.parse(query_str)
          return query
docs: Parse a smart search query for prefixes
  
              This is a helper function to smart_search_prefix for easier unit
              testing of the parser.