-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: AND search child collection properties
PostPosted: Wed Apr 16, 2014 9:23 am 
Newbie

Joined: Sun May 19, 2013 2:44 pm
Posts: 10
I have a hibernate entity class modeled like this.

@Indexed
public class Parent
{
@Field
private String name;

@IndexedEmbedded
private Set<Child> children;
}

public class Child
{
@Field
private String firstName;

@Field
private String lastName;

@ContainedIn
private Parent parent;
}

When I search on firstName AND lastName on the children collection from the parent, I get the results matching the firstName and any of the lastName. How can I get the results that match both the firstName and lastName?

+children.firstName:xxxxx +children.lastName:yyyy

Can this be done using filters? Anyone has a working example?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.