Hi,
I am not sure I understand your questions correctly, but I will try:
cablepuff wrote:
1.) and i want to do hibernate search index on that (if i extend A), and A is not index well B index include information from A.
No, only properties which are annotated with @Field are indexed. So if class B extends class A and only class B is annotated with @Indexed, only the fields within B which are annotated with @Field will get indexed.
cablepuff wrote:
2.) If i have A included in B via as a property.
B.getA()
B.setA(A a);
And i say indexEmbedded will it be able to index A even though A is never index from hibernate search.
Yes, you will be able to index A. For example you could have a @OneToOne mapping from class B to A. If you then also add @IndexEmbedded you get the behavior you are after.
--Hardy