On 24 June 2013 10:48, sathish_ix <skandhasw...@inautix.co.in> wrote:
> Hi,
>
> Can write the query like this way ?
> I need to append *** to returned field, is this possible.
>
> account_number has last 4 character
> account_name has full name of the account
>
> I need to append *** front of account number. Instead of handling in front
> end, thought to handle in solr.
> How can we do this ?
>
> http://localhost:9980/solr/select?q=*:*&fl=***account_number,account_name

I would strongly urge you to revisit your thinking for
this. Adding a static display-only value is best handled
in the topmost presentation layer, e.g., through a CSS
:before selector. It makes little sense to do this in Solr.

If you are still determined to do it in Solr, the best way
might be to add a custom transformer. Please see
http://wiki.apache.org/solr/CommonQueryParameters#Transformers
http://wiki.apache.org/solr/DocTransformers

Regards,
Gora

Reply via email to