: Any thoughts on this one? Why does Solr output a string in a long field with 
: XMLResponseWriter but fails doing so (as it should) with the javabin format?

performance.

the XML Response writer doesn't make any attempt to validate data from 
the index on the way out, the stored value in the index is a string, and 
the stream it's writing to accepts strings, so it writes the value as a 
string wrapped in <long> tags.

The Binary response writer on the other hand streams strings differnetly 
then longs, so it does care when it encounters the inforrect type, and it 
errors.

Bottom line: if your schema.xml is not consistent with your index, all 
bets are off as to what the behavior will be.



-Hoss

Reply via email to