-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AND検索の対象フィールド拡張可否 #163
Comments
検索対象を指定した全文検索をしたいというのであっていますか? それとも、Redmineのチケット検索画面と統合できないか?という話ですか? |
全文検索で複数フィールドを跨いでAND検索出来れば、というお願いになります。 |
あれ、今ってすべてのフィールドに対しての全文検索になっていませんか? |
https://redmine.example.com/search とかの検索画面での話ですよね? |
全文検索自体は全てのフィールドが対象なんですが、(多分カテゴリ以外) |
うーん、AND検索はどうやってやっていますか? 「キーワード1 AND キーワード2」ではなく、「キーワード1 キーワード2」と指定することになります。 ところで。。。 |
ご記載いただいた通り、キーワード1 キーワード2で検索しています。 |
あぁ、わかった気がします。 今は、検索結果の各エントリーがチケットの説明とかチケットのコメントの単位になっているのを、チケットに紐づくどれか(説明でもコメントでもカスタムフィールドでも)がヒットしたら、対象がどれでも紐づいているチケットが検索結果のエントリーにしたい、という話な気がします。とすると、チケット一覧ページでの検索フォームに統合するのがそれっぽいんですよねぇ。その場合、ソートが効かなくなる(既存のチケットのソート機能を使うことになる)のですが、それはアリですか?
[PR] 有償ですが、クリアコードという会社が未対応プラグインのメンテナンスも含めてRedmineのバージョンアップサポートやこのプラグインのサポートも含んだサポートサービスを提供しているので、必要であれば問い合わせしてみてください。 |
全文検索=チケットの検索機能のイメージで使用していますので、その通りです。 サポートの紹介までいただき、ありがとうございます。検討させていただきます。 |
あぁ、そうですね。UI的にハイライトを表示する箇所がなくなるのでそうなります。タイトルにマッチした場合だけならいけるかも。。。?
検索対象に既存の「題名」や「説明」のように「全文検索」が追加されるみたいなイメージですか? そうではなくて、できれば、検索対象のところではなく、「含む」とか「いずれかを含む」とかが出てくる検索方法のところでやれるといいなぁと思っています。たとえば、このプラグインがインストールされた状態で既存の「含む」とかの検索方法を指定したら高速に検索できるようになる、みたいなイメージです。(新しい検索方法を追加するのではなく。) |
その場合、検索対象は各フィールドを指定して、フィールド同士はor条件とかですか? |
検索対象は各フィールドを指定しますが、フィールド同士はANDです。既存のチケット一覧のフィルターもANDなはずなので、それと同じになります。 あれ、うーん、あぁ、フィールドごとにANDしたいわけじゃなかったんでしたね。各キーワードがどのフィールドに出現してもよくしたいのか。それが「全検索対象テキスト」フィールドになるわけですか。 「全検索対象テキスト」フィールドのRedmineの実装をざっと見てみましたが、このプラグインで置き換えることもできそうな気はするので、その方向で実現するのがよさそうな気がしてきました。 |
フィールド同士はANDになってしまいますか。 |
TODO全検索対象テキストを利用して、フィールドを跨いだAND検索をできるようにする
|
…earches GitHub: clear-codeGH-163 This commit introduces the `FullTextSearch::IssueAnySearchable` module to the `IssueQuery` class. The module is designed to support AND-based searches across multiple fields. This initial implementation only sets up the module and its interface without implementing the actual search logic. At the following PRs, we will implemente the search logic and adding relevant tests.
…AND searches (#164) GitHub: GH-163 This PR introduces the `FullTextSearch::IssueQueryAnySearchable` module to the `IssueQuery` class. The module is designed to support AND-based searches across multiple fields. This initial implementation only sets up the module and its interface without implementing the actual search logic. At the following PRs, we will implement the search logic and add relevant tests.
GitHub: GH-163 The `issue_contents` table was previously used for a "similar issue" search feature. But that feature was rarely used. We will change the purpose of this table for a new "multi-field AND" search across fields. To support this, we introduce a singular "content" column that has data from multiple fields for each issue. We've removed the `contents` column and `is_private` column. - `contents` is no longer needed because we are unifying data into the single `content` column. - `is_private` is removed to simplify the design for now. Private issues will not be included in the search at all. - If we think of the private issues, it will be too complicated. So we will add it again when we really need it. At the following PRs, we will implement the search logic and add relevant tests using this table.
下記フィールドを跨いでの「AND検索」が出来ず、何とか出来るようにならないでしょうか。。。
Redmine5.1では、全検索対象テキストが実装され、
こちらのプラグインでも実装いただければ、とてもありがたいです。
・AND検索可
・題名 AND 題名
・題名 AND 説明
・説明 AND 説明
・AND検索不可
・題名/説明 AND コメント/カスタムフィールド
・コメント#1 AND コメント#2
・コメント AND カスタムフィールド
・カスタムフィールドA AND カスタムフィールドB
The text was updated successfully, but these errors were encountered: