Giter VIP home page Giter VIP logo

Comments (5)

okkez avatar okkez commented on May 29, 2024

view は <%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %><%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %> があるのでどちらかを使える。

from redmine_full_text_search.

okkez avatar okkez commented on May 29, 2024

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.

okkez avatar okkez commented on May 29, 2024

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.

okkez avatar okkez commented on May 29, 2024

https://www.slideshare.net/kou/groongaseminar201708 によると PGroonga でも v2 演算子を使うようにすれば SQL から全文検索できる。
Mroonga と PGroonga で完全に書き方が分かれてしまうので、互いに参考にすることができなくなってあんまりうれしくない。

from redmine_full_text_search.

okkez avatar okkez commented on May 29, 2024

Merged #35

from redmine_full_text_search.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.