Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 20671 invoked from network); 18 Apr 2011 20:14:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Apr 2011 20:14:47 -0000 Received: (qmail 8728 invoked by uid 500); 18 Apr 2011 20:14:46 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 8640 invoked by uid 500); 18 Apr 2011 20:14:46 -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 8633 invoked by uid 99); 18 Apr 2011 20:14:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Apr 2011 20:14:46 +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, 18 Apr 2011 20:14:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id CF03BA794D for ; Mon, 18 Apr 2011 20:14:05 +0000 (UTC) Date: Mon, 18 Apr 2011 20:14:05 +0000 (UTC) From: "Paul Sheldon (JIRA)" To: dev@lucene.apache.org Message-ID: <101798372.65397.1303157645844.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SOLR-1945) Allow @Field annotations in nested classes using DocumentObjectBinder 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-1945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13021222#comment-13021222 ] Paul Sheldon commented on SOLR-1945: ------------------------------------ I think you are on the right track here with @Field and @FieldObject ideas. I'm coming from a compass/lucene environment, getting ready to ditch compass and implement solr. compass has a mature set of annotations for things such as @SearchableProperty, @SearchableComponent, @SearchableDynamicProperty, and so on. It would be great if solr supported concepts like these as well! we have quite a large object tree for marshalling an entity-managed pojo from the db to the lucene index. it has a lot of one-to-many and many-to-many relationships (i.e. collections) that are 'flattened' out during the marshalling process. this is currently handled automagically by compass using the simple compass annotations. in my planning and design for the conversion to solr, it looks like i'm going to have to code all that 'flattening' logic myself, fetching and consolidating data from the db to a pojo, and then marshalling the pojo to solr. How far do you think your implementation will go? will it just marshall one-to-one object graph relationships, or will it also go so far as to handle the one-to-many and many-to-many (collections) relationships too? > Allow @Field annotations in nested classes using DocumentObjectBinder > --------------------------------------------------------------------- > > Key: SOLR-1945 > URL: https://issues.apache.org/jira/browse/SOLR-1945 > Project: Solr > Issue Type: Improvement > Reporter: Mark Miller > Assignee: Mark Miller > Priority: Minor > Fix For: Next > > Attachments: SOLR-1945.patch > > > see http://search.lucidimagination.com/search/document/d909d909420aeb4e/does_solrj_support_nested_annotated_beans > Would be nice to be able to pass an object graph to solrj with @field annotations rather than just a top level class -- 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