[
https://issues.apache.org/jira/browse/SOLR-9127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15431899#comment-15431899
]
Tony Moriarty edited comment on SOLR-9127 at 8/23/16 1:01 AM:
--------------------------------------------------------------
OK integrated. PR ready for review again. Update to the documentation (changed
the solrconfig attribute names too):
{quote}
Column Width and mapping of metadata field names to nice names is configured
for the responsewriter; this can be done in the solrconfig or through request
params colname.foo and colwidth.foo.
<queryResponseWriter name="xlsx"
class="org.apache.solr.request.XLSXResponseWriter">
<lst name="colwidths">
<int name="id">8</int>
<int name="name">128</int>
...
</lst>
<lst name="colnames">
<str name="id">Product ID</str>
<str name="name">Product Name</str>
...
</lst>
</queryResponseWriter>
{quote}
But on review i've noticed Jan's older suggestion of using field request
parameters ie "f.id.xlsx.colname=Product ID" to do the renaming. Should I
update it to use field params?
was (Author: desultir):
OK integrated. PR ready for review again. Update to the documentation (changed
the solrconfig attribute names too):
{quote}
Column Width and mapping of metadata field names to nice names is configured
for the responsewriter; this can be done in the solrconfig or through request
params colname.foo and colwidth.foo.
<queryResponseWriter name="xlsx"
class="org.apache.solr.request.XLSXResponseWriter">
<lst name="colwidths">
<int name="id">8</int>
<int name="name">128</int>
...
</lst>
<lst name="colnames">
<str name="id">Product ID</str>
<str name="name">Product Name</str>
...
</lst>
</queryResponseWriter>
{/quote}
But on review i've noticed Jan's older suggestion of using field request
parameters ie "f.id.xlsx.colname=Product ID" to do the renaming. Should I
update it to use field params?
> XLSX response writer - do we want it?
> -------------------------------------
>
> Key: SOLR-9127
> URL: https://issues.apache.org/jira/browse/SOLR-9127
> Project: Solr
> Issue Type: Improvement
> Components: Response Writers
> Reporter: Tony Moriarty
> Priority: Minor
> Fix For: 5.5, 6.0
>
> Attachments: SOLR-9127.patch
>
>
> I recently open sourced an XLSX response writer based on solr 4.6 and apache
> poi.
> https://github.com/desultir/SolrXLSXResponseWriter
> Is this something the community would be interested in bringing into the solr
> codebase? I'm willing to put the work into porting it to solr5 and solr6 if
> the community is interested, happy to leave it as a plugin otherwise.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]