lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Formatted date/time in long field and javabinRW exception
Date Mon, 02 May 2011 22:20:41 GMT

: 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?


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 

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


View raw message