Created
January 25, 2012 08:10
-
-
Save ittaiz/1675319 to your computer and use it in GitHub Desktop.
Example of the model for elasticsearch nested objects question (removed getters setters for clarity)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DocProperty { | |
private String undesiredProperty; | |
private long otherUndesiredProperty; | |
private String name; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Document { | |
private DocProperty docProperty; | |
private Set<MultiDocProperty> multiDocProperties; | |
private String name; | |
private String otherProperty | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MultiDocProperty{ | |
private String yetAnotherUndesiredProperty; | |
private long lastUndesiredProperty; | |
private String name; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment