docstr: Dynamic template mappings config for keyword field based on path match
docstr_tok: ["Dynamic","template","mappings","config","for","keyword","field","based","on","path","match"]
code: def path_match_keyword_template(
      path: str,
      enable_text_search_in_keywords: bool = False,
  ):
      """Dynamic template mappings config for keyword field based on path match"""
      return {
          "path_match": path,
          "match_mapping_type": "string",
          "mapping": mappings.keyword_field(
              enable_text_search=enable_text_search_in_keywords,
          ),
      }
  
file_path: argilla/src/argilla/server/daos/backend/mappings/helpers.py
imports: from typing import Any, Dict, List
  from argilla.server.daos.backend.mappings.stopwords import english
  from argilla.server.settings import settings
label_desc: Use image node_id 2 for calling the mappings obj's underlying member method code with example usage: obj.path_match_keyword_template(path, enable_text_search_in_keywords) and returns: dict