docstr: Mappings config for textual field
docstr_tok: ["Mappings","config","for","textual","field"]
code: def text_field(with_wordcloud: bool = True):
      """Mappings config for textual field"""
      default_analyzer = settings.default_es_search_analyzer
      exact_analyzer = settings.exact_es_search_analyzer
  
      mappings = {
          "type": "text",
          "analyzer": default_analyzer,
          "fields": {
              "exact": {
                  "type": "text",
                  "analyzer": exact_analyzer,
              },
          },
      }
  
      if with_wordcloud:
          mappings["fields"]["wordcloud"] = {
              "type": "text",
              "fielddata": True,
              "fielddata_frequency_filter": {
                  "min": 0.001,
                  "max": 0.1,
                  "min_segment_size": 500,
              },
              "analyzer": MULTILINGUAL_STOP_ANALYZER_REF,
          }
  
      return mappings
  
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 3 for calling the mappings obj's underlying member method code with example usage: obj.text_field(with_wordcloud) and returns: mappings