1 Star 1 Fork 0

Indexea / indexea-rust-sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
IndicesApi.md 28.80 KB
一键复制 编辑 原始数据 按行查看 历史
Indexea 提交于 2023-09-24 13:05 . update

\IndicesApi

All URIs are relative to https://api.indexea.com/v1

Method HTTP request Description
index_period_cleanup POST /indices/{app}/{index}/cleanup 清空索引记录
index_period_copy_to POST /indices/{app}/{index}/copyto 导出索引数据
index_period_create POST /indices/{app} 创建索引
index_period_create_template POST /indices/templates 创建索引模板
index_period_delete DELETE /indices/{app}/{index} 删除索引
index_period_delete_crawler_task DELETE /indices/{app}/{index}/crawler-settings 删除索引的数据爬取任务
index_period_delete_template DELETE /indices/templates 删除索引模板
index_period_export POST /indices/{app}/{index}/export 导出索引数据
index_period_flush POST /indices/{app}/{index}/flush 清空索引记录
index_period_flush_settings PUT /indices/{app}/{index}/settings 写入设置信息到索引
index_period_get GET /indices/{app}/{index} 获取单个索引详情
index_period_get_crawler_logs GET /indices/{app}/{index}/crawler-logs 获取索引的爬虫任务的爬取日志
index_period_get_crawler_task GET /indices/{app}/{index}/crawler-settings 获取索引的爬虫任务设定
index_period_get_filter_settings GET /indices/{app}/{index}/filter-settings 获取索引设置信息
index_period_get_settings GET /indices/{app}/{index}/settings 获取索引设置信息
index_period_list GET /indices/{app} 获取应用的索引列表
index_period_list_templates GET /indices/templates 获取所有可用的索引模板
index_period_prefetch GET /indices/crawler 获取目标网站内容预览
index_period_rebuild POST /indices/{app}/{index}/rebuild 重建索引数据
index_period_rebuild_task GET /indices/{app}/{index}/rebuild 获取重建索引任务的详情
index_period_submit_crawler_task POST /indices/{app}/{index}/crawler-settings 提交或者更新索引的数据爬取任务
index_period_update PUT /indices/{app}/{index} 修改索引
index_period_update_settings POST /indices/{app}/{index}/settings 更新索引设置信息
index_period_update_template PUT /indices/templates 修改索引模板
synonyms_period_add POST /indices/{app}/{index}/synonyms 添加同义词
synonyms_period_delete DELETE /indices/{app}/{index}/synonyms 删除同义词
synonyms_period_enable PATCH /indices/{app}/{index}/synonyms 启用禁用同义词
synonyms_period_flush POST /indices/{app}/{index}/synonyms-flush 将同义词更新到搜索引擎的同义词表
synonyms_period_import POST /indices/{app}/{index}/synonyms-import 导入同义词
synonyms_period_list GET /indices/{app}/{index}/synonyms 获取索引的所有同义词
synonyms_period_update PUT /indices/{app}/{index}/synonyms 修改同义词

index_period_cleanup

serde_json::Value index_period_cleanup(app, index, vcode) 清空索引记录

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]
vcode String 验证码 [required]

Return type

serde_json::Value

Authorization

TokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

index_period_copy_to

crate::models::IndexBean index_period_copy_to(app, index, name, fields, queries, records) 导出索引数据

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]
name String 新索引的名称 [required]
fields bool 是否复制字段定义 [required]
queries bool 是否复制所有查询 [required]
records bool 是否复制所有文档 [required]

Return type

crate::models::IndexBean

Authorization

TokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

index_period_create

crate::models::IndexBean index_period_create(app, index_form) 创建索引

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index_form IndexForm [required]

Return type

crate::models::IndexBean

Authorization

TokenAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

index_period_create_template

crate::models::IndexTemplate index_period_create_template(index_template) 创建索引模板

Parameters

Name Type Description Required Notes
index_template IndexTemplate [required]

Return type

crate::models::IndexTemplate

Authorization

TokenAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

index_period_delete

bool index_period_delete(app, index, vcode) 删除索引

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]
vcode String [required]

Return type

bool

Authorization

TokenAuth

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

index_period_delete_crawler_task

bool index_period_delete_crawler_task(app, index) 删除索引的数据爬取任务

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]

Return type

bool

Authorization

TokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

index_period_delete_template

bool index_period_delete_template(id) 删除索引模板

Parameters

Name Type Description Required Notes
id i32 [required]

Return type

bool

Authorization

TokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

index_period_export

bool index_period_export(app, index, format) 导出索引数据

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]
format String 导出数据的格式 [required] [default to json]

Return type

bool

Authorization

TokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

index_period_flush

bool index_period_flush(app, index) 清空索引记录

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]

Return type

bool

Authorization

TokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

index_period_flush_settings

serde_json::Value index_period_flush_settings(app, index, r#type, password) 写入设置信息到索引

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]
r#type String 设置类型 [required]
password String [required]

Return type

serde_json::Value

Authorization

TokenAuth

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

index_period_get

crate::models::IndexBean index_period_get(app, index) 获取单个索引详情

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]

Return type

crate::models::IndexBean

Authorization

TokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

index_period_get_crawler_logs

crate::models::CrawlerLogs index_period_get_crawler_logs(app, index, from, size) 获取索引的爬虫任务的爬取日志

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]
from i32 [required]
size i32 [required]

Return type

crate::models::CrawlerLogs

Authorization

TokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

index_period_get_crawler_task

crate::models::CrawlerTask index_period_get_crawler_task(app, index) 获取索引的爬虫任务设定

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]

Return type

crate::models::CrawlerTask

Authorization

TokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

index_period_get_filter_settings

Vec index_period_get_filter_settings(app, index, r#type) 获取索引设置信息

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]
r#type String 设置类型 [required]

Return type

Vec

Authorization

TokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

index_period_get_settings

crate::models::IndexSettings index_period_get_settings(app, index, r#type) 获取索引设置信息

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]
r#type String 设置类型 [required]

Return type

crate::models::IndexSettings

Authorization

TokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

index_period_list

Veccrate::models::IndexBean index_period_list(app, stat) 获取应用的索引列表

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
stat Option<bool> 是否包含索引的统计信息 [default to true]

Return type

Veccrate::models::IndexBean

Authorization

TokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

index_period_list_templates

crate::models::IndexTemplates index_period_list_templates(from, size) 获取所有可用的索引模板

Parameters

Name Type Description Required Notes
from i32 [required] [default to 0]
size i32 [required] [default to 100]

Return type

crate::models::IndexTemplates

Authorization

TokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

index_period_prefetch

Vec<serde_json::Value> index_period_prefetch(r#type, url) 获取目标网站内容预览

Parameters

Name Type Description Required Notes
r#type String [required]
url String [required]

Return type

Vec<serde_json::Value>

Authorization

TokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

index_period_rebuild

crate::models::IndexTask index_period_rebuild(app, index, index_rebuild_form) 重建索引数据

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]
index_rebuild_form IndexRebuildForm [required]

Return type

crate::models::IndexTask

Authorization

TokenAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

index_period_rebuild_task

crate::models::IndexTask index_period_rebuild_task(app, index, task_id) 获取重建索引任务的详情

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]
task_id i32 任务编号,传0则获取最新的任务信息 [required] [default to 0]

Return type

crate::models::IndexTask

Authorization

TokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

index_period_submit_crawler_task

crate::models::CrawlerTask index_period_submit_crawler_task(app, index, crawler_task) 提交或者更新索引的数据爬取任务

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]
crawler_task CrawlerTask [required]

Return type

crate::models::CrawlerTask

Authorization

TokenAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

index_period_update

crate::models::IndexBean index_period_update(app, index, index_form) 修改索引

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]
index_form IndexForm [required]

Return type

crate::models::IndexBean

Authorization

TokenAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

index_period_update_settings

bool index_period_update_settings(app, index, r#type, body) 更新索引设置信息

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]
r#type String 设置类型 [required]
body Option<String>

Return type

bool

Authorization

TokenAuth

HTTP request headers

  • Content-Type: text/plain
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

index_period_update_template

crate::models::IndexTemplate index_period_update_template(index_template) 修改索引模板

Parameters

Name Type Description Required Notes
index_template IndexTemplate [required]

Return type

crate::models::IndexTemplate

Authorization

TokenAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

synonyms_period_add

crate::models::SynonymsBean synonyms_period_add(app, index, synonyms_bean) 添加同义词

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]
synonyms_bean SynonymsBean [required]

Return type

crate::models::SynonymsBean

Authorization

TokenAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

synonyms_period_delete

bool synonyms_period_delete(app, index, id) 删除同义词

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]
id i32 同义词编号 [required]

Return type

bool

Authorization

TokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

synonyms_period_enable

bool synonyms_period_enable(app, index, id, enable, all) 启用禁用同义词

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]
id i32 同义词编号 [required]
enable Option<bool> 是否启用
all Option<bool> 是否对所有索引起作用

Return type

bool

Authorization

TokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

synonyms_period_flush

serde_json::Value synonyms_period_flush(app, index, password) 将同义词更新到搜索引擎的同义词表

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]
password String [required]

Return type

serde_json::Value

Authorization

TokenAuth

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

synonyms_period_import

Veccrate::models::SynonymsBean synonyms_period_import(app, index, action, synonyms_bean) 导入同义词

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]
action i32 覆盖方式 [required]
synonyms_bean Veccrate::models::SynonymsBean [required]

Return type

Veccrate::models::SynonymsBean

Authorization

TokenAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

synonyms_period_list

Veccrate::models::SynonymsBean synonyms_period_list(app, index, size, r#type, from) 获取索引的所有同义词

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]
size i32 [required] [default to 99999]
r#type Option<i32> 类型 [default to 0]
from Option<i32> [default to 0]

Return type

Veccrate::models::SynonymsBean

Authorization

TokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

synonyms_period_update

crate::models::SynonymsBean synonyms_period_update(app, index, synonyms_bean) 修改同义词

Parameters

Name Type Description Required Notes
app String 应用标识 [required]
index i32 索引编号 [required]
synonyms_bean SynonymsBean [required]

Return type

crate::models::SynonymsBean

Authorization

TokenAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

1
https://gitee.com/indexea/indexea-rust-sdk.git
git@gitee.com:indexea/indexea-rust-sdk.git
indexea
indexea-rust-sdk
indexea-rust-sdk
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891