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 D16B48FAE for ; Tue, 16 Aug 2011 11:15:01 +0000 (UTC) Received: (qmail 73585 invoked by uid 500); 16 Aug 2011 11:15:00 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 73217 invoked by uid 500); 16 Aug 2011 11:14:55 -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 73201 invoked by uid 99); 16 Aug 2011 11:14:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2011 11:14:49 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,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; Tue, 16 Aug 2011 11:14:47 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2A588BFE1C for ; Tue, 16 Aug 2011 11:14:27 +0000 (UTC) Date: Tue, 16 Aug 2011 11:14:27 +0000 (UTC) From: "Chris Male (JIRA)" To: dev@lucene.apache.org Message-ID: <1463576239.41013.1313493267170.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <851695581.27970.1313074767316.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (SOLR-2708) Allow customizable bean mapping for QueryResponse.getBeans(..) 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-2708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Male updated SOLR-2708: ----------------------------- Attachment: SOLR-2708.patch First step, preliminary cleanup of the codebase so I can see whats going on. > Allow customizable bean mapping for QueryResponse.getBeans(..) > -------------------------------------------------------------- > > Key: SOLR-2708 > URL: https://issues.apache.org/jira/browse/SOLR-2708 > Project: Solr > Issue Type: Improvement > Components: clients - java > Affects Versions: 1.4, 3.1 > Reporter: Bozhidar Bozhanov > Attachments: SOLR-2708.patch > > > The mechanism for getting beans is rather limited - only classes @Field-annotated fields. > Imaging the following subprojects: > - common > - search > And you want to reuse a class from common as a result from a solr search. You should either duplicate the structure or make common depend on solrj. Neither are desirable. > So, my suggestion: > - introduce a pluggable mechanism for bean resolution. Currently it is impossible - it uses private methods and private inner classes. (This will be useful for custom conversions, because the existing one fails in some cases where BeanUtils.copyProperties works.) > - allow externalized (xml) configuration > - allow detecting all fields, annotated or not (off by default) -- 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