Skip to content

Instantly share code, notes, and snippets.

@UmarIqbal
Created January 17, 2014 12:45
Show Gist options
  • Save UmarIqbal/8472805 to your computer and use it in GitHub Desktop.
Save UmarIqbal/8472805 to your computer and use it in GitHub Desktop.
package searchIndexer;
public class DocStructure {
private Long id;
private String title;
private String content;
public static final String ID = "id";
public static final String TITLE = "title";
public static final String CONTENT = "content";
public DocStructure(Long id, String title, String content) {
this.id = id;
this.title = title;
this.content = content;
}
public Long getId() {
return id;
}
public String getTitle() {
return title;
}
public String getContent() {
return content;
}
@Override
public String toString() {
return "IndexItem{" +
"id=" + id +
", title='" + title + '\'' +
", content='" + content + '\'' +
'}';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment