Skip to content

Instantly share code, notes, and snippets.

@ittaiz
Created January 25, 2012 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ittaiz/1675319 to your computer and use it in GitHub Desktop.
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)
public class DocProperty {
private String undesiredProperty;
private long otherUndesiredProperty;
private String name;
}
public class Document {
private DocProperty docProperty;
private Set<MultiDocProperty> multiDocProperties;
private String name;
private String otherProperty
}
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