redmine_full_text_search icon indicating copy to clipboard operation
redmine_full_text_search copied to clipboard

Search Knowledgebase articles

Open asyahana opened this issue 4 years ago • 4 comments

Knowledgebase articles are not currently searched. It is a function by a plug-in, and although it is not standard, it seems that there are many plug-in users. Do you have any plans to support it? (現時点では、ナレッジベースの記事は検索対象となっていません。  ナレッジベースはプラグインによる機能ではありますが、多くのユーザーが使用していると思われます。  対応予定はございますでしょうか。)

asyahana avatar May 06 '21 01:05 asyahana

https://github.com/alexbevi/redmine_knowledgebase ?

Our company and our customers don't use the plugin. So we don't have a plan to support it. If someone opens a pull request to support it or a new customer wants to use it, we'll support it.

kou avatar May 06 '21 04:05 kou

I'll try to extend this plugin for redmine_knowledgebase. ( and I want to search Redmine DMSF articles, too. )

Could you tell me how to extend this plugin? I read some source code but I can't understand entire plugin's architecture.

I think following changes are needed .

  • create new mapper class file at lib/full_text_search ( like attachment_mapper.rb )
  • append require_dependency in init.rb

すみません、英語が得意でないので日本語でコメントします。 Full Text Search プラグインを利用させていただいているものです。 素晴らしいプラグインを利用させていただきありがとうございます。

早速ですが、僕の方で redmine_knowledgebase プラグインへの拡張を試してみたいと考えています。(できれば DMSF プラグインにも対応したいと考えています)

ソースコードを眺めてみたのですが、プラグイン全体の構造が把握できずどこから手をつければよいかわからないので、もし可能であれば変更の方針をご教示いただけると助かります。

少なくとも以下の変更が必要だと考えています。

  • lib/full_text_search の配下に新しい mapper クラスを作成する
  • init.rb に require_dependency を追加する

他にもここを変えなければいけないとか、こういう点に注意する必要があるなどがあればお教えいただけたらと思います。

juno-nishizaki avatar May 07 '21 13:05 juno-nishizaki

さすがです!

https://github.com/clear-code/redmine_full_text_search#how-to-develop にちょっとまとめてみました!

kou avatar May 10 '21 00:05 kou

ありがとうございます! 反応遅くなってしまい申し訳ございません。 まとめていただいた情報を参考にしながらトライしてみます!

juno-nishizaki avatar May 14 '21 23:05 juno-nishizaki