lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (Commented) (JIRA) <>
Subject [jira] [Commented] (SOLR-2970) CSV ResponseWriter returns fields defined as stored=false in schema
Date Thu, 15 Dec 2011 16:12:30 GMT


Jan Høydahl commented on SOLR-2970:

Take the example:
Query: http://localhost:8983/solr/ac/select/?q=*%3A*&wt=csv
a1,"Born 1898, author of Narnia",,,1023.9588,search,author_facet,,author,C.S. Lewis,256
a2,Swedish fake author,,,799.97003,search,author_facet,,author,Carl Larsson,200
a3,Norwegian famous author,,,359.992,search,author_facet,,author,Petter Dass,90

Fields textphon, textng and textnge are not stored. After the patch, we get:
Query: http://localhost:8983/solr/ac/select/?q=*%3A*&wt=csv
a1,"Born 1898, author of Narnia",1023.9588,search,author_facet,author,C.S. Lewis,256
a2,Swedish fake author,799.97003,search,author_facet,author,Carl Larsson,200
a3,Norwegian famous author,359.992,search,author_facet,author,Petter Dass,90

You can still ask for specific fields in any order:

Query: http://localhost:8983/solr/ac/select?q=*:*&wt=csv&fl=type,subtext,id
author,"Born 1898, author of Narnia",a1
author,Swedish fake author,a2
author,Norwegian famous author,a3

Is it ever correct to return non-stored fields?
> CSV ResponseWriter returns fields defined as stored=false in schema
> -------------------------------------------------------------------
>                 Key: SOLR-2970
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: Response Writers
>            Reporter: Jan Høydahl
>            Priority: Minor
>             Fix For: 4.0
>         Attachments: SOLR-2970.patch
> 1. Add &wt=csv to a query
> 2. You get columns for non-stored fields

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message