# search-back **Repository Path**: duan-chi-ming/search-back ## Basic Information - **Project Name**: search-back - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-02 - **Last Updated**: 2021-08-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # search-back #### 介绍 信息检索系统 详情 http://dcm-gem.cn:8083/#/ #### 软件架构 python flask #### 安装教程 1. 将文件放在data目录下并重命名为education.txt, entertainment.txt, fashion.txt, Finance.txt, military.txt, PE.txt, science.txt ![文件结构说明](https://images.gitee.com/uploads/images/2021/0602/100445_87487ec1_8789364.png "屏幕截图.png") 2. 按1 2 3 4的顺序依次运行1.Split.py等py脚本 3. 运行Find.py脚本 4. 如遇到找不到文件错误请根据提示新建相应的文件夹 #### 使用说明 1. 后端提供的接口如下 # 仓库:searcher ## 模块:searcher后台接口 ### 接口:搜索接口 * 地址:/search * 类型:POST * 状态码:200 * 简介:搜索接口 * Rap地址:[http://dcm-gem.cn:3000/repository/editor?id=23&mod=82&itf=284](http://dcm-gem.cn:3000/repository/editor?id=23&mod=82&itf=284) * 请求接口格式: ``` └─ content: String (必选) (用户输入的搜索关键字) ``` * 返回接口格式: ``` ├─ success: Boolean (必选) ├─ msg: String (必选) (信息返回成功) └─ data: Object ├─ title: String (必选) ├─ content: String (必选) └─ url: String (必选) ``` ### 接口:获取所有关键字 * 地址:/getWords * 类型:GET * 状态码:200 * 简介:获取所有关键字 * Rap地址:[http://dcm-gem.cn:3000/repository/editor?id=23&mod=82&itf=285](http://dcm-gem.cn:3000/repository/editor?id=23&mod=82&itf=285) * 请求接口格式: ``` └─ content: String (必选) (用户输入的搜索关键字) ``` * 返回接口格式: ``` ├─ success: Boolean (必选) ├─ msg: String (必选) (信息返回成功) └─ content: Array (内容): Array (必选) (内容) ``` ### 接口:获取文件内容 * 地址:/getFiles * 类型:GET * 状态码:200 * 简介:获取所有关键字 * Rap地址:[http://dcm-gem.cn:3000/repository/editor?id=23&mod=82&itf=286](http://dcm-gem.cn:3000/repository/editor?id=23&mod=82&itf=286) * 请求接口格式: ``` └─ content: Number (必选) (文件序号) ``` * 返回接口格式: ``` ├─ success: Boolean (必选) ├─ msg: String (必选) (信息返回成功) └─ content: String (必选) (文件内容) ``` #### 参与贡献 1. dcm 2. tjy 3. jmj