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 BEC00963D for ; Mon, 23 Apr 2012 14:07:59 +0000 (UTC) Received: (qmail 30861 invoked by uid 500); 23 Apr 2012 14:07:58 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 30779 invoked by uid 500); 23 Apr 2012 14:07:58 -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 30669 invoked by uid 99); 23 Apr 2012 14:07:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Apr 2012 14:07:58 +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; Mon, 23 Apr 2012 14:07:55 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3749340AAB7 for ; Mon, 23 Apr 2012 14:07:34 +0000 (UTC) Date: Mon, 23 Apr 2012 14:07:34 +0000 (UTC) From: "Robert Muir (JIRA)" To: dev@lucene.apache.org Message-ID: <434419871.4877.1335190054241.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <585319082.3278.1335137253791.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-4012) Make all query classes serializable with Jackson, and provide a trivial query parser to consume them 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/LUCENE-4012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13259613#comment-13259613 ] Robert Muir commented on LUCENE-4012: ------------------------------------- Yeah a sketch (maybe just Term and Boolean or something ?) would be cool, maybe my paranoia is unjustified... then we could see what it actually would need to look like and think about the backwards-compatibility/API costs etc would be. > Make all query classes serializable with Jackson, and provide a trivial query parser to consume them > ---------------------------------------------------------------------------------------------------- > > Key: LUCENE-4012 > URL: https://issues.apache.org/jira/browse/LUCENE-4012 > Project: Lucene - Java > Issue Type: New Feature > Components: core/queryparser > Affects Versions: 4.0 > Reporter: Benson Margulies > > I started off on LUCENE-4004 wanting to use DisjunctionMaxQuery via a parser. However, this wasn't really because I thought that human beans should be improvisationally composing such thing. My real goal was to concoct a query tree over *here*, and then serialize it to send to Solr over *there*. > It occurs to me that if the Xml parser is pretty good for this, JSON would be better. It further occurs to me that the query classes may already all work with Jackson, and, if they don't, the required tweaks will be quite small. By allowing Jackson to write out class names as needed, you get the ability to serialize *any* query, so long as the other side has the classes in class path. A trifle verbose, but not as verbose as XML, and furthermore squishable (though not in a URL) via SMILE or BSON. > So, the goal of this JIRA is to accumulate tweaks to the query classes to make them more 'bean pattern'. An alternative would be Jackson annotations. However, I suspect that folks would be happier to minimize the level of coupling here; in the extreme, the trivial parser could live in contrib if no one wants a dependency, even optional, on Jackson itself. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa 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