Comments (5)
view は <%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %>
と<%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %>
があるのでどちらかを使える。
from redmine_full_text_search.
Wikiは簡単にできる。
c.select_value("select pgroonga.command('select', ARRAY['table', pgroonga.table_name('index_searcher_records_pgroonga'), 'filter', 'text *S \"#{w}\" && original_type == \"WikiPage\" && original_id != 1', 'output_columns', 'original_id, original_type,text,_score', 'sort_keys', '-_score'])::json")
output columns にはテキス自体はいらない。そのページへのリンクを作るために必要な情報さえあれば。
Wikiのサイドバーにコンテンツを追加するフックがない。
from redmine_full_text_search.
project_id
みたいに issue_id
を追加して以下のようにやるとそれっぽい結果にならないだろうか。
select --table searcher_records \
--filter '(description *S "..." || notes *S "...") in_values(original_type, "Issue", "Journal") ' \
--drilldown issue_id
これでダメそうなら、最初の案の通り専用のテーブルを追加してやるのがいい気がする。
from redmine_full_text_search.
https://www.slideshare.net/kou/groongaseminar201708 によると PGroonga でも v2 演算子を使うようにすれば SQL から全文検索できる。
Mroonga と PGroonga で完全に書き方が分かれてしまうので、互いに参考にすることができなくなってあんまりうれしくない。
from redmine_full_text_search.
Merged #35
from redmine_full_text_search.
Related Issues (20)
- ActiveRecord::RecordNotFound (Couldn't find FullTextSearch::TagType with 'id'=0) HOT 3
- migrate error on pgroonga HOT 3
- インストールしようとするとデータベース(Mroonga)のマイグレーションに失敗する HOT 2
- redmine 5.0.2 ruby 3.1.2 HOT 3
- fts_targets records of custom field is not deleted when Issue is deleted HOT 2
- 削除したカスタムフィールドの単語を検索時、エラー HOT 5
- Thinking of OpenAI HOT 1
- データ同期でエラー HOT 11
- 検索結果のソートにチケット番号を追加してほしい HOT 42
- Redmine 5.1 isn't supported HOT 16
- Add support for fuzzy search
- Add test cases for order by last modified time or score HOT 1
- Support for Redmine master with Rails version 7 HOT 2
- Syntax error may be happen
- Asynchronous job for data update
- Search for "rms" results in a 500 error HOT 1
- Exceeds PostgreSQL index size limit HOT 4
- Error on Rails6 HOT 5
- Search Knowledgebase articles HOT 4
- Proposal to improve database recovery procedure HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redmine_full_text_search.