TextSearcher - add velocity parameters

Séb P.
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 23, 2012

Hi,

In my custom fields, I was able to inject parameters from *.properties file using the getVelocityParameters method, and later use them in my *.vm files.

How could we do it in a custom field searcher? There is no getVelocityParameters method!

Thanks!

1 answer

1 accepted

0 votes
Answer accepted
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 23, 2012

Happens in the CustomFieldRenderer class. Create your own renderer by extending this and use that in the searcher.

Séb P.
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 26, 2012

Works very well, thank you!

Suggest an answer

Log in or Sign up to answer