code: def tasks_common_mappings():
      """Commons index mappings"""
      return {
          # TODO(@frascuchon): verify min es version that support meta fields
          # "_meta": {"version.min": "0.10"},
          "dynamic": "strict",
          "properties": {
              "id": mappings.keyword_field(),
              "text": mappings.text_field(),
              # TODO(@frascuchon): Enable prediction and annotation
              #  so we can build extra metrics based on these fields
              "prediction": {"type": "object", "enabled": False},
              "annotation": {"type": "object", "enabled": False},
              "predictions": mappings.dynamic_field(),
              "annotations": mappings.dynamic_field(),
              "status": mappings.keyword_field(),
              "event_timestamp": {"type": "date_nanos"},
              "last_updated": {"type": "date_nanos"},
              "annotated_by": mappings.keyword_field(
                  enable_text_search=True
              ),
              "predicted_by": mappings.keyword_field(
                  enable_text_search=True
              ),
              "metrics": mappings.dynamic_field(),
              "metadata": mappings.dynamic_field(),
              "vectors": mappings.dynamic_field(),
          },
          "dynamic_templates": [
              dynamic_metadata_text(),
              dynamic_metrics_text(),
              dynamic_annotations_text(path="predictions"),
              dynamic_annotations_text(path="annotations"),
          ],
      }
  
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 7 for calling a global function with example usage: tasks_common_mappings() and returns: dict