On 4/14/2014 7:43 AM, Shawn Heisey wrote:
> When results are being determined for the response, it sounds like the
> schema is NOT consulted -- I think the code simply reads what's in the
> Lucene index and applies the "fl" parameter to decide which fields are
> returned. The index doesn't change when you change the schema -- Lucene
> does not use a schema.  That's something Solr brings to the table.

It could be argued that this is a bug.  It may not be a bug that's easy
to fix for all response writers.

It's still worth an issue in Jira.  If it turns out that such an issue
already exists, then it will be marked as a duplicate and closed ...
which means that either way, it will receive some attention.

I haven't looked into the code very far, but I did note that the schema
is already available in BinaryResponseWriter.  It does not seem to be
available in the XML or JSON response writers, though.  The fix may not
be easy.

Thanks,
Shawn

Reply via email to