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 5CABD4EB2 for ; Sun, 12 Jun 2011 13:07:17 +0000 (UTC) Received: (qmail 86812 invoked by uid 500); 12 Jun 2011 13:07:15 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 86726 invoked by uid 500); 12 Jun 2011 13:07:15 -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 86717 invoked by uid 99); 12 Jun 2011 13:07:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Jun 2011 13:07:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Jun 2011 13:07:13 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8EEC1415D08 for ; Sun, 12 Jun 2011 13:06:52 +0000 (UTC) Date: Sun, 12 Jun 2011 13:06:52 +0000 (UTC) From: "Martijn van Groningen (JIRA)" To: dev@lucene.apache.org Message-ID: <1178006817.859.1307884012582.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1145017434.21028.1305674387324.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SOLR-2523) SolrJ QueryResponse doesn't support range facets MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-2523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13048310#comment-13048310 ] Martijn van Groningen commented on SOLR-2523: --------------------------------------------- I'm currently adding getAsFilterQuery() method for range facets as described here: http://www.mail-archive.com/solr-user@lucene.apache.org/msg51871.html I'm currently having a problem with parsing date gaps. DateMathParser is part of Solr core, so I can't use it in SolrJ. I moved it to solr commons, which let me to another issue. The DateMathParser#getNow() method uses SolrRequestInfo which uses a lot of Solr core classes. So I thought I should introduce a CurrentDataSource callback, which decouples the DateMatchParser completely from core. Any thoughts about this approach? Maybe we should commit the current patch as it is now and open a new issue for adding getAsFilterQuery() method. We can then open another issue for moving the DateMathParser to commons, which I think is a good idea any way. > SolrJ QueryResponse doesn't support range facets > ------------------------------------------------ > > Key: SOLR-2523 > URL: https://issues.apache.org/jira/browse/SOLR-2523 > Project: Solr > Issue Type: Improvement > Components: clients - java > Reporter: Martijn van Groningen > Assignee: Martijn van Groningen > Priority: Trivial > Fix For: 3.3, 4.0 > > Attachments: SOLR-2523.patch, SOLR-2523.patch > > > It is possible to get date facets and pivot facets in SolrJ. > {code:java} > queryResponse.getFacetDate(); > queryResponse.getFacetPivot(); > {code} > Having this also for range fields would be nice. Adding this is trivial. Maybe we should deprecate date facet methods in QueryResponse class? Since it is superseded by range facets. Also some set / add / remove methods for setting facet range parameters on the SolrQuery class would be nice. -- This message is automatically generated by JIRA. 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