es_dynamic.md 8.2 KB

{ "ragflow_92162247e93e11f084830242ac1d0002": {

"mappings": {
  "dynamic_templates": [
    {
      "int": {
        "match": "*_int",
        "mapping": {
          "store": "true",
          "type": "integer"
        }
      }
    },
    {
      "ulong": {
        "match": "*_ulong",
        "mapping": {
          "store": "true",
          "type": "unsigned_long"
        }
      }
    },
    {
      "long": {
        "match": "*_long",
        "mapping": {
          "store": "true",
          "type": "long"
        }
      }
    },
    {
      "short": {
        "match": "*_short",
        "mapping": {
          "store": "true",
          "type": "short"
        }
      }
    },
    {
      "numeric": {
        "match": "*_flt",
        "mapping": {
          "store": true,
          "type": "float"
        }
      }
    },
    {
      "tks": {
        "match": "*_tks",
        "mapping": {
          "analyzer": "whitespace",
          "similarity": "scripted_sim",
          "store": true,
          "type": "text"
        }
      }
    },
    {
      "ltks": {
        "match": "*_ltks",
        "mapping": {
          "analyzer": "whitespace",
          "store": true,
          "type": "text"
        }
      }
    },
    {
      "kwd": {
        "match": "^(.*_(kwd|id|ids|uid|uids)|uid)$",
        "match_pattern": "regex",
        "mapping": {
          "similarity": "boolean",
          "store": true,
          "type": "keyword"
        }
      }
    },
    {
      "dt": {
        "match": "^.*(_dt|_time|_at)$",
        "match_pattern": "regex",
        "mapping": {
          "format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||yyyy-MM-dd_HH:mm:ss",
          "store": true,
          "type": "date"
        }
      }
    },
    {
      "nested": {
        "match": "*_nst",
        "mapping": {
          "type": "nested"
        }
      }
    },
    {
      "object": {
        "match": "*_obj",
        "mapping": {
          "dynamic": "true",
          "type": "object"
        }
      }
    },
    {
      "string": {
        "match": "^.*_(with_weight|list)$",
        "match_pattern": "regex",
        "mapping": {
          "index": "false",
          "store": true,
          "type": "text"
        }
      }
    },
    {
      "rank_feature": {
        "match": "*_fea",
        "mapping": {
          "type": "rank_feature"
        }
      }
    },
    {
      "rank_features": {
        "match": "*_feas",
        "mapping": {
          "type": "rank_features"
        }
      }
    },
    {
      "dense_vector": {
        "match": "*_512_vec",
        "mapping": {
          "dims": 512,
          "index": true,
          "similarity": "cosine",
          "type": "dense_vector"
        }
      }
    },
    {
      "dense_vector": {
        "match": "*_768_vec",
        "mapping": {
          "dims": 768,
          "index": true,
          "similarity": "cosine",
          "type": "dense_vector"
        }
      }
    },
    {
      "dense_vector": {
        "match": "*_1024_vec",
        "mapping": {
          "dims": 1024,
          "index": true,
          "similarity": "cosine",
          "type": "dense_vector"
        }
      }
    },
    {
      "dense_vector": {
        "match": "*_1536_vec",
        "mapping": {
          "dims": 1536,
          "index": true,
          "similarity": "cosine",
          "type": "dense_vector"
        }
      }
    },
    {
      "binary": {
        "match": "*_bin",
        "mapping": {
          "type": "binary"
        }
      }
    }
  ],
  "date_detection": true,
  "properties": {
    "authors_sm_tks": {
      "type": "text",
      "store": true,
      "analyzer": "whitespace",
      "similarity": "scripted_sim"
    },
    "authors_tks": {
      "type": "text",
      "store": true,
      "analyzer": "whitespace",
      "similarity": "scripted_sim"
    },
    "available_int": {
      "type": "integer",
      "store": true
    },
    "content_ltks": {
      "type": "text",
      "store": true,
      "analyzer": "whitespace"
    },
    "content_sm_ltks": {
      "type": "text",
      "store": true,
      "analyzer": "whitespace"
    },
    "content_with_weight": {
      "type": "text",
      "index": false,
      "store": true
    },
    "create_time": {
      "type": "date",
      "store": true,
      "format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||yyyy-MM-dd_HH:mm:ss"
    },
    "create_timestamp_flt": {
      "type": "float",
      "store": true
    },
    "doc_id": {
      "type": "keyword",
      "store": true,
      "similarity": "boolean"
    },
    "doc_type_kwd": {
      "type": "keyword",
      "store": true,
      "similarity": "boolean"
    },
    "docnm_kwd": {
      "type": "keyword",
      "store": true,
      "similarity": "boolean"
    },
    "entity_kwd": {
      "type": "keyword",
      "store": true,
      "similarity": "boolean"
    },
    "entity_type_kwd": {
      "type": "keyword",
      "store": true,
      "similarity": "boolean"
    },
    "from_entity_kwd": {
      "type": "keyword",
      "store": true,
      "similarity": "boolean"
    },
    "img_id": {
      "type": "keyword",
      "store": true,
      "similarity": "boolean"
    },
    "important_kwd": {
      "type": "keyword",
      "store": true,
      "similarity": "boolean"
    },
    "important_tks": {
      "type": "text",
      "store": true,
      "analyzer": "whitespace",
      "similarity": "scripted_sim"
    },
    "kb_id": {
      "type": "keyword",
      "store": true,
      "similarity": "boolean"
    },
    "knowledge_graph_kwd": {
      "type": "keyword",
      "store": true,
      "similarity": "boolean"
    },
    "lat_lon": {
      "type": "geo_point",
      "store": true
    },
    "page_num_int": {
      "type": "integer",
      "store": true
    },
    "position_int": {
      "type": "integer",
      "store": true
    },
    "q_1024_vec": {
      "type": "dense_vector",
      "dims": 1024,
      "index": true,
      "similarity": "cosine"
    },
    "question_kwd": {
      "type": "keyword",
      "store": true,
      "similarity": "boolean"
    },
    "question_tks": {
      "type": "text",
      "store": true,
      "analyzer": "whitespace",
      "similarity": "scripted_sim"
    },
    "removed_kwd": {
      "type": "keyword",
      "store": true,
      "similarity": "boolean"
    },
    "source_id": {
      "type": "keyword",
      "store": true,
      "similarity": "boolean"
    },
    "title_sm_tks": {
      "type": "text",
      "store": true,
      "analyzer": "whitespace",
      "similarity": "scripted_sim"
    },
    "title_tks": {
      "type": "text",
      "store": true,
      "analyzer": "whitespace",
      "similarity": "scripted_sim"
    },
    "to_entity_kwd": {
      "type": "keyword",
      "store": true,
      "similarity": "boolean"
    },
    "top_int": {
      "type": "integer",
      "store": true
    },
    "weight_int": {
      "type": "integer",
      "store": true
    }
  }
}

} }