Project

General

Profile

Actions

Feature #24513

open

Search result - show custom field and values in search result

Added by Raphael Reumayr over 7 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Search engine
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

Hello developers,

i would like to implement the possibility to not only search for:
api.id result.id
api.title result.event_title
api.type result.event_type
api.url url_for(result.event_url(:only_path => false))
api.description result.event_description
api.datetime result.event_datetime

but also for a custom_field like "name" or other custom field values.

I tried for some hours, but i am not a ruby on rails developer.

Any hints on how to implementing this quick and dirty?


Related issues

Related to Redmine - Feature #22607: Search in custom fields and issuesNew

Actions
Actions #1

Updated by Toshi MARUYAMA over 7 years ago

Actions #2

Updated by Raphael Reumayr over 7 years ago

Sorry Toshi Maruyama. I did not correctly explain the feature.

Searching for custom field works fine in our Redmine 3.3.0.stable environment.
But the "search result" only consists of:

api.id result.id
api.title result.event_title
api.type result.event_type
api.url url_for(result.event_url(:only_path => false))
api.description result.event_description
api.datetime result.event_datetime

we also want to show custom fields in the search result, such as "custom field name" or "custom field firstname" or any other custom field.
As we have custom field "name and firstname" in our issues.

Right now the result looks like this:
"'PROJECT-Name' - 'Title'"

we need:
"PROJECT-Name - 'Title' - 'Firstname' - 'Lastname'"

=> where firstname and lastname are custom fields.

URL: https://exampledomain.com/search?utf8=✓&q=willy
(this would search for willy - and brings correct results but only showing "PROJECT-Name" and "Title" but we need "firname (willy) and lastname (willy's lastname)" as well!

Kind regards,
Raphael

Actions

Also available in: Atom PDF