https://github.com/scriptscat/dz_recommend
油猴中文网用文章相似推荐
https://github.com/scriptscat/dz_recommend
Last synced: 8 months ago
JSON representation
油猴中文网用文章相似推荐
- Host: GitHub
- URL: https://github.com/scriptscat/dz_recommend
- Owner: scriptscat
- License: gpl-3.0
- Created: 2022-07-11T15:51:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-23T06:40:04.000Z (11 months ago)
- Last Synced: 2025-06-03T14:51:39.125Z (9 months ago)
- Language: PHP
- Homepage: https://bbs.tampermonkey.net.cn/
- Size: 729 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dz_recommend
油猴中文网用文章相似推荐
## 开发配置
启动docker后,在runtime/config/config_global.php文件后加入
```php
$_config['plugindeveloper'] = 2;
```
## es 索引模板
```
PUT _index_template/dz.forum_thread
{
"template": {
"mappings": {
"properties": {
"tid": {
"type": "long"
},
"fid": {
"type": "long"
},
"title": {
"type": "text",
"index": true,
"analyzer": "ik_max_word",
"eager_global_ordinals": false,
"index_phrases": false,
"norms": true,
"fielddata": false,
"store": false,
"index_options": "positions",
"search_analyzer": "ik_smart"
},
"content": {
"type": "text",
"index": true,
"analyzer": "ik_max_word",
"eager_global_ordinals": false,
"index_phrases": false,
"norms": true,
"fielddata": false,
"store": false,
"index_options": "positions",
"search_analyzer": "ik_smart"
}
}
}
},
"index_patterns": [
"dz.forum_thread"
]
}
```