Will Johnson wrote:
Has anyone done anything interesting to preserve display values for
field names. Ie my users would like to see
Download Speed (MB/sec): 5
As opposed to:
ds:5
The general model has been to think of solr like SQL... it is only the
database - display choices should be at the client side. It seems easy
enough to have a map on the client with:
"ds" => "Download Speed (MB/sec)"
That said, something like the sql 'as' command would be useful:
SELECT ds as `Download Speed (MB/sec)` FROM table...;
rather then define the field name at index time (as your example
suggests) it makes more sense to define it at query time (or as a
default in the RequestHandler config) Maybe something like:
/select?fl=ds&display.ds=Download Speed (MB/sec)
Maybe this would be a way to specify date formatting?
/select?fl=timestamp&display.timestamp='Year'&display.format.timestamp=YYYY
just thoughts...