Solr field alias

Field alias

Any field, function, or transformer can be displayed with a different name in the output document:

 

Example

Meaning

id,price:crazy_price_field

return the stored field 'crazy_price_field' but display it as 'price'

id,price:sum(a,b)

return price as the sum of fields a+b

fl=my_alias:field_name

returns "field_name" but displays it as "my_alias"

posted @ 2015-04-20 14:58  风云力  阅读(296)  评论(0编辑  收藏  举报