Patch #23153

Plugin hooks for custom search results

Added by okkez _ over 1 year ago. Updated over 1 year ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Plugin API
Target version:3.3.1

Description

I'm a developer https://github.com/okkez/redmine_full_text_search

I want to add funcionality to sort by `upated_at` or `score`.

Please apply these patches.

Thank you.

Associated revisions

Revision 15583
Added by Jean-Philippe Lang over 1 year ago

Add params to Redmine::Search::Fetcher#initialize optional parameter (#23153).

Patch by okkez.

Revision 15584
Added by Jean-Philippe Lang over 1 year ago

Add hook view_search_index_options_content_bottom (#23153).

Patch by okkez.

History

#1 Updated by Go MAEDA over 1 year ago

Could you describe use cases of the changes?

#2 Updated by okkez _ over 1 year ago

In Redmine 3.3.0, we cannot customize search result (app/views/search/index.html.erb) at all.
I want to add new query parameter `orderby` or `sortby`.
And `Redmine::Search::Fetcher` cannot handle extra query parameters sush as `orderby` or `sortby`.
I want to use extra query parameters in my plugin that customizes `Redmine::Search::Fetcher`.

#3 Updated by Go MAEDA over 1 year ago

  • Target version set to 3.4.0

Thanks for the explanation. Setting target version to 3.4.0.

#4 Updated by Jean-Philippe Lang over 1 year ago

  • Subject changed from Customize search result to Plugin hooks for custom search results
  • Status changed from New to Resolved
  • Assignee set to Jean-Philippe Lang
  • Target version changed from 3.4.0 to 3.3.1

#5 Updated by Jean-Philippe Lang over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF