summaryrefslogtreecommitdiff
path: root/src/main/java/com/p4square/groupsindexer/model/GroupSearchDocument.java
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2018-09-06 20:20:45 -0700
committerJesse Morgan <jesse@jesterpm.net>2018-09-06 20:20:45 -0700
commit87e7e2aa60ea5d02ef76477603d7f034d1a2f762 (patch)
tree450504f8c38f06ef5c172ecd430b3cd9eb9134b5 /src/main/java/com/p4square/groupsindexer/model/GroupSearchDocument.java
parent07538322208257974d0686753d27ee976ee1f7f1 (diff)
Add location, leader email, and campus search field
Diffstat (limited to 'src/main/java/com/p4square/groupsindexer/model/GroupSearchDocument.java')
-rw-r--r--src/main/java/com/p4square/groupsindexer/model/GroupSearchDocument.java24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/main/java/com/p4square/groupsindexer/model/GroupSearchDocument.java b/src/main/java/com/p4square/groupsindexer/model/GroupSearchDocument.java
index 5708c4f..3f32194 100644
--- a/src/main/java/com/p4square/groupsindexer/model/GroupSearchDocument.java
+++ b/src/main/java/com/p4square/groupsindexer/model/GroupSearchDocument.java
@@ -7,7 +7,7 @@ import java.util.HashMap;
import java.util.Map;
/**
- * A group description in ElasticSearch.
+ * A group description in the search results.
*/
public class GroupSearchDocument {
@@ -29,6 +29,12 @@ public class GroupSearchDocument {
@JsonProperty("leader-name")
private String leaderName;
+ @JsonProperty("leader-email")
+ private String leaderEmail;
+
+ @JsonProperty("location-city")
+ private String locationCity;
+
@JsonProperty("member-count")
private int currentMembers;
@@ -101,6 +107,22 @@ public class GroupSearchDocument {
this.leaderName = leaderName;
}
+ public String getLeaderEmail() {
+ return leaderEmail;
+ }
+
+ public void setLeaderEmail(String leaderEmail) {
+ this.leaderEmail = leaderEmail;
+ }
+
+ public String getLocationCity() {
+ return locationCity;
+ }
+
+ public void setLocationCity(String locationCity) {
+ this.locationCity = locationCity;
+ }
+
public String getImageUrl() {
return imageUrl;
}