{
  "openapi" : "3.1.0",
  "info" : {
    "title" : "API",
    "description" : "Normally, user should refer to business domain SDK to achieve business search requirement instead of this SDK.",
    "version" : "1.0/platform-pub",
    "x-mo-original-description" : "API Documentation",
    "x-mo-overwrite-description" : "Normally, user should refer to business domain SDK to achieve business search requirement instead of this SDK."
  },
  "servers" : [ {
    "url" : "http://platform-pub.platform"
  } ],
  "paths" : {
    "/search/indexService/pub/v1/deleteIndexDataById" : {
      "post" : {
        "tags" : [ "IndexWriting" ],
        "summary" : "Deletes index data by specified indexName and entityId.",
        "operationId" : "deleteIndexDataById",
        "parameters" : [ {
          "name" : "indexName",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "entityId",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK"
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Deletes index data by specified indexName and entityId."
      }
    },
    "/search/indexService/pub/v1/deleteIndexWithQuery" : {
      "post" : {
        "tags" : [ "IndexWriting" ],
        "summary" : "Deletes index data based on a query for the given indexName.",
        "operationId" : "deleteIndexWithQuery",
        "parameters" : [ {
          "name" : "indexName",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : {
                  "type" : "object",
                  "additionalProperties" : {
                    "type" : "object"
                  }
                }
              }
            }
          },
          "required" : true,
          "x-codegen-request-body-name" : "esMap"
        },
        "responses" : {
          "200" : {
            "description" : "OK"
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Deletes index data based on a query for the given indexName."
      }
    },
    "/search/indexService/pub/v1/doIndexWithMap" : {
      "post" : {
        "tags" : [ "IndexWriting" ],
        "summary" : "Indexes data provided as a map for the specified indexName.",
        "operationId" : "doIndexWithMap",
        "parameters" : [ {
          "name" : "indexName",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : {
                  "type" : "object"
                }
              }
            }
          },
          "required" : true,
          "x-codegen-request-body-name" : "indexFieldValueMap"
        },
        "responses" : {
          "200" : {
            "description" : "OK"
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Indexes data provided as a map for the specified indexName."
      }
    },
    "/search/indexService/pub/v1/doIndexWithMapBulk" : {
      "post" : {
        "tags" : [ "IndexWriting" ],
        "summary" : "Bulk indexes data provided as an array of DoIndexDataVo objects for a specific serverName.",
        "operationId" : "doIndexWithMapBulk",
        "parameters" : [ {
          "name" : "serverName",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/DoIndexDataVo"
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/RestResult"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Bulk indexes data provided as an array of DoIndexDataVo objects for a specific serverName."
      }
    },
    "/search/indexService/pub/v1/doIndexWithMapBulkWithTran" : {
      "post" : {
        "tags" : [ "IndexWriting" ],
        "summary" : "Similar to doIndexWithMapBulk, but includes transaction support via bulkId.",
        "operationId" : "doIndexWithMapBulkWithTran",
        "parameters" : [ {
          "name" : "serverName",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "bulkId",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/DoIndexDataVo"
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK"
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Similar to doIndexWithMapBulk, but includes transaction support via bulkId."
      }
    },
    "/search/indexService/pub/v1/updateIndexWithMap" : {
      "post" : {
        "tags" : [ "IndexWriting" ],
        "summary" : "Updates index data by indexName and entityId with provided map data.",
        "operationId" : "updateIndexWithMap",
        "parameters" : [ {
          "name" : "indexName",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "entityId",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : {
                  "type" : "object"
                }
              }
            }
          },
          "required" : true,
          "x-codegen-request-body-name" : "indexFieldValueMap"
        },
        "responses" : {
          "200" : {
            "description" : "OK"
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Updates index data by indexName and entityId with provided map data."
      }
    },
    "/search/indexService/pub/v1/updateIndexWithQuery" : {
      "post" : {
        "tags" : [ "IndexWriting" ],
        "summary" : "Updates index data based on a query for the given indexName.",
        "operationId" : "updateIndexWithQuery",
        "parameters" : [ {
          "name" : "indexName",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : {
                  "type" : "object",
                  "additionalProperties" : {
                    "type" : "object"
                  }
                }
              }
            }
          },
          "required" : true,
          "x-codegen-request-body-name" : "esMap"
        },
        "responses" : {
          "200" : {
            "description" : "OK"
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Updates index data based on a query for the given indexName."
      }
    },
    "/search/searchIndex/v1/findIndexByName" : {
      "get" : {
        "tags" : [ "IndexDefinition" ],
        "summary" : "Retrieves the definition of an index by its indexName.",
        "operationId" : "findIndexByName",
        "parameters" : [ {
          "name" : "indexName",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SearchIndex"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Retrieves the definition of an index by its indexName."
      }
    },
    "/search/searchIndex/v1/nativeDslQuery" : {
      "post" : {
        "tags" : [ "IndexQuery" ],
        "summary" : "Executes a native DSL query on the specified indexName with optional pagination using offset and size.",
        "operationId" : "nativeDslQuery",
        "parameters" : [ {
          "name" : "indexName",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "size",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "string"
              }
            },
            "text/plain" : {
              "schema" : {
                "type" : "string"
              }
            }
          },
          "required" : true,
          "x-codegen-request-body-name" : "queryDsl"
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "string"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Executes a native DSL query on the specified indexName with optional pagination using offset and size."
      }
    },
    "/search/searchIndex/v1/queryBaseResult" : {
      "post" : {
        "tags" : [ "IndexQuery" ],
        "summary" : "Queries and returns base results based on the provided SearchCondition.",
        "operationId" : "queryBaseResult",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SearchCondition"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/QueryResult"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Queries and returns base results based on the provided SearchCondition."
      }
    },
    "/search/searchIndex/v1/queryEntity" : {
      "post" : {
        "tags" : [ "IndexQuery" ],
        "summary" : "Retrieves an entity by its entityId, indexName, and server.",
        "operationId" : "queryEntity",
        "parameters" : [ {
          "name" : "entityId",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          }
        }, {
          "name" : "indexName",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "server",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : {
                    "type" : "object"
                  }
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Retrieves an entity by its entityId, indexName, and server."
      }
    },
    "/search/searchIndex/v1/queryForCodeTable" : {
      "post" : {
        "tags" : [ "IndexQuery" ],
        "summary" : "Queries code table data based on the provided CodeTableConditionVo.",
        "operationId" : "queryCodeTable",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CodeTableConditionVo"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CodeTableResult"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Queries code table data based on the provided CodeTableConditionVo."
      }
    }
  },
  "components" : {
    "schemas" : {
      "CodeTableConditionVo" : {
        "type" : "object",
        "properties" : {
          "CodeTableName" : {
            "type" : "string"
          },
          "ConditionMap" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "string"
            }
          },
          "PageNo" : {
            "type" : "integer",
            "format" : "int32"
          },
          "PageSize" : {
            "type" : "integer",
            "format" : "int32"
          },
          "QueryAll" : {
            "type" : "boolean"
          },
          "SearchField" : {
            "type" : "string"
          },
          "UrpExOrgs" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "UrpOrgs" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          }
        }
      },
      "CodeTableEntity" : {
        "type" : "object",
        "properties" : {
          "Code" : {
            "type" : "string"
          },
          "CodeTableName" : {
            "type" : "string"
          },
          "Description" : {
            "type" : "string"
          },
          "EsId" : {
            "type" : "string"
          },
          "Id" : {
            "type" : "string"
          },
          "OtherParams" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          }
        }
      },
      "CodeTableResult" : {
        "type" : "object",
        "properties" : {
          "BusinessCodeTableValueList" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/CodeTableEntity"
            }
          },
          "TotalPage" : {
            "type" : "integer",
            "format" : "int64"
          }
        }
      },
      "DoIndexDataVo" : {
        "type" : "object",
        "properties" : {
          "DataEntity" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "DelId" : {
            "type" : "string"
          },
          "ParentId" : {
            "type" : "string"
          },
          "Schema" : {
            "type" : "string"
          }
        }
      },
      "GroupResult" : {
        "type" : "object",
        "properties" : {
          "EsDocs" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "additionalProperties" : {
                "type" : "object"
              }
            }
          },
          "GroupTotalNum" : {
            "type" : "integer",
            "format" : "int64"
          },
          "GroupValue" : {
            "type" : "string"
          },
          "InnerDocs" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "additionalProperties" : {
                "type" : "object"
              }
            }
          }
        }
      },
      "QueryResult" : {
        "type" : "object",
        "properties" : {
          "AggConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "Aggs" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "GroupField" : {
            "type" : "string"
          },
          "MaxPageCount" : {
            "type" : "integer",
            "format" : "int64"
          },
          "PageNo" : {
            "type" : "integer",
            "format" : "int32"
          },
          "PageSize" : {
            "type" : "integer",
            "format" : "int32"
          },
          "Results" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/GroupResult"
            }
          },
          "Total" : {
            "type" : "integer",
            "format" : "int64"
          },
          "TotalExactHitCount" : {
            "type" : "integer",
            "format" : "int64"
          }
        }
      },
      "RestResult" : {
        "type" : "object",
        "properties" : {
          "ErrKey" : {
            "type" : "string"
          },
          "Status" : {
            "type" : "boolean"
          },
          "Value" : {
            "type" : "object"
          }
        }
      },
      "SearchCondition" : {
        "type" : "object",
        "properties" : {
          "AggConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "Conditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "ConditionsMapLinkedWithOrList" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "additionalProperties" : {
                "type" : "object"
              }
            }
          },
          "ExcludeFields" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "ExistFields" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "FromRangeConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "FuzzyConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "GroupField" : {
            "type" : "string"
          },
          "InConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "array",
              "items" : {
                "type" : "object"
              }
            }
          },
          "IncludeFields" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "Module" : {
            "type" : "string"
          },
          "NotExistFields" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "NotInConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "array",
              "items" : {
                "type" : "object"
              }
            }
          },
          "OrConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "OrConditionsList" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "additionalProperties" : {
                "type" : "object"
              }
            }
          },
          "OrFuzzyConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "OrFuzzyConditionsList" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "additionalProperties" : {
                "type" : "object"
              }
            }
          },
          "OrInConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "array",
              "items" : {
                "type" : "object"
              }
            }
          },
          "PageNo" : {
            "type" : "integer",
            "format" : "int32"
          },
          "PageSize" : {
            "type" : "integer",
            "format" : "int32"
          },
          "ParentSearchCondition" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/SearchCondition"
            }
          },
          "SearchType" : {
            "type" : "integer",
            "format" : "int32"
          },
          "ServerName" : {
            "type" : "string"
          },
          "SortField" : {
            "type" : "string"
          },
          "SortFieldAndTypeList" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "additionalProperties" : {
                "type" : "string"
              }
            }
          },
          "SortType" : {
            "type" : "string"
          },
          "ToRangeConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "TransType" : {
            "type" : "string"
          },
          "UrpContent" : {
            "type" : "string"
          },
          "UseDeputyAnalyzers" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "string"
            }
          },
          "WithCodeDesc" : {
            "type" : "boolean"
          },
          "WithExactHitCount" : {
            "type" : "boolean"
          }
        }
      },
      "SearchIndex" : {
        "type" : "object",
        "properties" : {
          "@pk" : {
            "type" : "integer",
            "format" : "int64"
          },
          "DataProvider" : {
            "type" : "string"
          },
          "Description" : {
            "type" : "string"
          },
          "FieldDefinitionProvider" : {
            "type" : "string"
          },
          "FieldList" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/SearchIndexField"
            }
          },
          "GroupId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "IndexId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "ModelId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "ModelName" : {
            "type" : "string"
          },
          "ModuleId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "Name" : {
            "type" : "string"
          },
          "OldPrimaryKey" : {
            "type" : "integer",
            "format" : "int64"
          },
          "ParentType" : {
            "type" : "string"
          },
          "PreSchema" : {
            "type" : "string"
          },
          "ReadAlias" : {
            "type" : "string"
          },
          "RebuildDataProvider" : {
            "type" : "string"
          },
          "RebuildIndexJob" : {
            "type" : "string"
          },
          "RebuildStatus" : {
            "type" : "integer",
            "format" : "int32"
          },
          "RecordUsage" : {
            "type" : "integer",
            "format" : "int32"
          },
          "SchemaName" : {
            "type" : "string"
          },
          "Sign" : {
            "type" : "string"
          },
          "TempData" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "UseEdge" : {
            "type" : "string"
          },
          "WriteAlias" : {
            "type" : "string"
          }
        }
      },
      "SearchIndexField" : {
        "type" : "object",
        "properties" : {
          "@pk" : {
            "type" : "integer",
            "format" : "int64"
          },
          "CodeTableName" : {
            "type" : "string"
          },
          "CustomScript" : {
            "type" : "string"
          },
          "DeputyAnalyzers" : {
            "type" : "string"
          },
          "Desc" : {
            "type" : "string"
          },
          "FieldData" : {
            "type" : "string"
          },
          "FieldId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "FieldJavaType" : {
            "type" : "integer",
            "format" : "int32"
          },
          "FieldName" : {
            "type" : "string"
          },
          "HasPinyin" : {
            "type" : "string"
          },
          "IncludeToAll" : {
            "type" : "string"
          },
          "IndexFieldId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "IndexFieldName" : {
            "type" : "string"
          },
          "IsCodeTable" : {
            "type" : "string"
          },
          "IsEdgeNgram" : {
            "type" : "string"
          },
          "IsFuzzy" : {
            "type" : "string"
          },
          "IsOverrideVendorField" : {
            "type" : "string"
          },
          "ModelId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "ModelName" : {
            "type" : "string"
          },
          "NeedDisplay" : {
            "type" : "string"
          },
          "ObjectCode" : {
            "type" : "string"
          },
          "OldPrimaryKey" : {
            "type" : "integer",
            "format" : "int64"
          },
          "OnlyExact" : {
            "type" : "string"
          },
          "RecordUsage" : {
            "type" : "integer",
            "format" : "int32"
          },
          "TempData" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          }
        }
      }
    }
  },
  "x-mo-gateway-auth-enabled" : true,
  "x-mo-gateway-cors-enabled" : false
}