lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shalin Shekhar Mangar <shalinman...@gmail.com>
Subject Re: Annotations and reference types
Date Mon, 02 Nov 2009 16:35:32 GMT
On Thu, Oct 29, 2009 at 7:57 PM, M. Tinnemeyer <marc-web@gmx.net> wrote:

> Dear listusers,
>
> Is there a way to store an instance of class A (including the fields from
> "myB") via solr using annotations ?
> The index should look like : id; name; b_id; b_name
>
> ----------
> Class A {
>
> @Field
> private String id;
> @Field
> private String name;
> @Field
> private B myB;
> }
>
> ----------
> Class B {
>
> @Field("b_id")
> private String id;
> @Field("B_name")
> private String name;
> }
>
>
No.

I guess you want to represent certain fields in class B and have them as an
attribute in Class A (but all fields belong to the same schema), then it can
be a worthwhile addition to Solrj. Can you open an issue? A patch would be
even better :)

-- 
Regards,
Shalin Shekhar Mangar.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message