LoginSignup
1
0

More than 1 year has passed since last update.

FESS で Redmine ナレッジベースと用語集をクロール

Last updated at Posted at 2023-01-31

FESSでナレッジと用語集をクロールする設定

ナレッジベース プラグイン
用語集 プラグイン

  • どちらもデータストアでクロールします
  • ナレッジと用語集は同じ一つのプロジェクトで管理しています(Project ID:index)
  • url はRedmineサーバー環境にあわせてください

ナレッジベース

SQL文

sql=SELECT id,title,summary,content, DATE_FORMAT(updated_at,'%Y-%m-%dT%H:%i:%s.00Z') AS last_modified_dt FROM kb_articles

スクリプト

url="https://xx.xx.xx.xx/redmine/projects/index/knowledgebase/articles/" + id
host="https://xxx.xx.xx.xx/"
site="https://xx.xx.xx.xx/redmine/projects/index/knowledgebase/"
title="【Redmine - ナレッジベース】" + title
content=content
cache=content
digest=summary
anchor=
content_length=content.length()
last_modified=last_modified_dt
timestamp=last_modified_dt

用語集

SQL文

sql=SELECT id,name,description, DATE_FORMAT(updated_at,'%Y-%m-%dT%H:%i:%s.00Z') AS last_modified_dt FROM glossary_terms

スクリプト

url="https://xxx.xx.xx.xx/redmine/projects/index/glossary_terms/" + id
host="https://xxx.xx.xx.xx/"
site="https://xxx.xx.xx.xx/redmine/projects/index/glossary_terms/"
title="【Redmine - 用語集】" + name
content=description
cache=description
digest=name
anchor=
content_length=content.length()
last_modified=last_modified_dt
timestamp=last_modified_dt
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0