Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5BB66ECA9 for ; Mon, 11 Mar 2013 06:09:15 +0000 (UTC) Received: (qmail 65162 invoked by uid 500); 11 Mar 2013 06:09:14 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 65091 invoked by uid 500); 11 Mar 2013 06:09:13 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 65060 invoked by uid 99); 11 Mar 2013 06:09:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Mar 2013 06:09:12 +0000 Date: Mon, 11 Mar 2013 06:09:12 +0000 (UTC) From: "Dotan Cohen (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (SOLR-4552) Date ranging with JSON QueryResponseWriter returns array of ints, not array of objects MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-4552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dotan Cohen updated SOLR-4552: ------------------------------ Priority: Minor (was: Major) > Date ranging with JSON QueryResponseWriter returns array of ints, not array of objects > -------------------------------------------------------------------------------------- > > Key: SOLR-4552 > URL: https://issues.apache.org/jira/browse/SOLR-4552 > Project: Solr > Issue Type: Bug > Components: Response Writers > Affects Versions: 4.0 > Environment: Debian-based Linux OS, Jetty container, Java 1.7 > Reporter: Dotan Cohen > Priority: Minor > > Faceting on a date range with the default XML QueryResponseWriter correctly gives the following output, which is easily parsable: > > 134755 > 338759 > 337118 > 309487 > > However, the JSON QueryResponseWriter gives the following output, which conflates the field names and values and is thus not easily parsable: > "counts": [ > "2013-03-01T00:00:00Z", > 134755, > "2013-03-02T00:00:00Z", > 338754, > "2013-03-03T00:00:00Z", > 337115, > "2013-03-04T00:00:00Z", > 309482, > ] > I would expect the JSON QueryResponseWriter to give the following output, which is consistent with the XML QueryResponseWriter and is easily parsable: > "counts": [ > {"2013-03-01T00:00:00Z":134755}, > {"2013-03-02T00:00:00Z":338754}, > {"2013-03-03T00:00:00Z":337115}, > {"2013-03-04T00:00:00Z":309482}, > ] -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org