Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6DB6A31DE for ; Mon, 2 May 2011 22:21:16 +0000 (UTC) Received: (qmail 97059 invoked by uid 500); 2 May 2011 22:21:13 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 96994 invoked by uid 500); 2 May 2011 22:21:13 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 96986 invoked by uid 99); 2 May 2011 22:21:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 May 2011 22:21:13 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.160.48] (HELO mail-pw0-f48.google.com) (209.85.160.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 May 2011 22:21:05 +0000 Received: by pwi16 with SMTP id 16so3953522pwi.35 for ; Mon, 02 May 2011 15:20:45 -0700 (PDT) Received: by 10.68.48.4 with SMTP id h4mr9470010pbn.37.1304374845260; Mon, 02 May 2011 15:20:45 -0700 (PDT) Received: from bester.local ([65.78.136.75]) by mx.google.com with ESMTPS id m10sm3147200pbf.8.2011.05.02.15.20.42 (version=SSLv3 cipher=OTHER); Mon, 02 May 2011 15:20:43 -0700 (PDT) Date: Mon, 2 May 2011 15:20:41 -0700 (PDT) From: Chris Hostetter To: solr-user@lucene.apache.org, markus.jelsma@openindex.io Subject: Re: Formatted date/time in long field and javabinRW exception In-Reply-To: <201104281352.03250.markus.jelsma@openindex.io> Message-ID: References: <201104191052.33608.markus.jelsma@openindex.io> <201104281352.03250.markus.jelsma@openindex.io> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII : 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 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