I think that you can handle this by creating a search index that is 
composite of c.field1 and p.field2. 

For example: 

Child(Ancestor)
   ParentChildJoin
      field1 : "name1"
      field2: "aa"

So, to query for a child object you only have to retrieve it using:

List<ParentChildJoin> joins = pm.createQuery(ParentChildJoin.class,"where 
field1='"name1'" && field2='"aa").execute();
Child c = pm.getObjectById(Child.class,joings.get(0).getKey().getParent());


The following relation could be created using task queue after parent or 
child was updated. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to