Hi,
I have a field that in certain cases is persisted with null value. I don't know how I can create a query for the case that this field is null.
I have two classes, Group and Person in a many to many relationship. I don't know how to create a search for the case of person without Group
A simplified domain model is:
Person @Field(index=Index.TOKENIZED, store=Store.NO) private String name; @ManyToMany @IndexedEmbedded private Set<Grupo> groups = new HashSet<Grupo>();
Groups @Field(index = Index.TOKENIZED, store = Store.YES) private Long id; @ContainedIn @ManyToMany private Set<Person> persons = new HashSet<Person>();
For the search of Person who have a group I've just included a clause for the group Id in the lucene query. My problem is persons without a group.
Thanks
|