forked from geonetwork/core-geonetwork
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from ga-gn/es-newfields
Add new index fields in elastic search - authors, pid, ecatid, keywor…
- Loading branch information
Showing
4 changed files
with
135 additions
and
4 deletions.
There are no files selected for viewing
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
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
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
62 changes: 62 additions & 0 deletions
62
domain/src/main/java/org/fao/geonet/domain/MetadataIndexedField.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package org.fao.geonet.domain; | ||
|
||
public class MetadataIndexedField { | ||
|
||
private String eCatId; | ||
private String uuid; | ||
private String keywords; | ||
private String pid; | ||
private String authors; | ||
|
||
public String geteCatId() { | ||
return eCatId; | ||
} | ||
|
||
public void seteCatId(String eCatId) { | ||
this.eCatId = eCatId; | ||
} | ||
|
||
public String getUuid() { | ||
return uuid; | ||
} | ||
|
||
public void setUuid(String uuid) { | ||
this.uuid = uuid; | ||
} | ||
|
||
public String getPid() { | ||
return pid; | ||
} | ||
|
||
public void setPid(String pid) { | ||
this.pid = pid; | ||
} | ||
|
||
public String getKeywords() { | ||
return keywords; | ||
} | ||
|
||
public void setKeywords(String keywords) { | ||
this.keywords = keywords; | ||
} | ||
|
||
public String getAuthors() { | ||
return authors; | ||
} | ||
|
||
public void setAuthors(String authors) { | ||
this.authors = authors; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
|
||
StringBuilder sb = new StringBuilder(); | ||
sb.append("eCatId: " + this.eCatId + ", "); | ||
sb.append("uuid: " + this.uuid + ", "); | ||
sb.append("pid: " + this.pid + ", "); | ||
sb.append("keywords: " + this.keywords + ", "); | ||
sb.append("author: " + this.authors + ", "); | ||
return sb.toString(); | ||
} | ||
} |