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