Skip to content

Instantly share code, notes, and snippets.

Created March 19, 2017 12:27
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/73e8787701751bce3760b730b1c2bcc3 to your computer and use it in GitHub Desktop.
@SpaceClass
public class Comment {
private String id;
private String body;
private Author author;
private Boolean archived;
private Integer score;
@SpaceId
public String getId() {
return id;
}
@SpaceTextIndex // - (1)
public String getBody() {
return body;
}
@SpaceTextIndex(path = "name") // - (2)
@SpaceTextAnalyzer(analyzer = KeywordAnalyzer.class) // - (3)
public Author getAuthor() {
return author;
}
// getters and setters go here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment