-
Notifications
You must be signed in to change notification settings - Fork 0
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 #48 from icgc-argo/rc/2.5.0
Rc/2.5.0
- Loading branch information
Showing
19 changed files
with
390 additions
and
46 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
13 changes: 13 additions & 0 deletions
13
src/main/java/bio/overture/songsearch/config/constants/EsDefaults.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,13 @@ | ||
package bio.overture.songsearch.config.constants; | ||
|
||
import static lombok.AccessLevel.PRIVATE; | ||
|
||
import lombok.NoArgsConstructor; | ||
|
||
@NoArgsConstructor(access = PRIVATE) | ||
public class EsDefaults { | ||
// Default values from ES pagination: | ||
// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/paginate-search-results.html | ||
public static final Integer ES_PAGE_DEFAULT_SIZE = 10; | ||
public static final Integer ES_PAGE_DEFAULT_FROM = 0; | ||
} |
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
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
8 changes: 8 additions & 0 deletions
8
src/main/java/bio/overture/songsearch/model/AggregationResult.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,8 @@ | ||
package bio.overture.songsearch.model; | ||
|
||
import lombok.Value; | ||
|
||
@Value | ||
public class AggregationResult { | ||
Long totalHits; | ||
} |
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
22 changes: 22 additions & 0 deletions
22
src/main/java/bio/overture/songsearch/model/SearchResult.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,22 @@ | ||
package bio.overture.songsearch.model; | ||
|
||
import java.util.List; | ||
import lombok.Value; | ||
|
||
@Value | ||
public class SearchResult<T> { | ||
List<T> content; | ||
Info info; | ||
|
||
public SearchResult(List<T> content, Boolean hasNextFrom, Long totalHits) { | ||
this.content = content; | ||
this.info = new Info(hasNextFrom, totalHits, content.size()); | ||
} | ||
|
||
@Value | ||
public static class Info { | ||
Boolean hasNextFrom; | ||
Long totalHits; | ||
Integer contentCount; | ||
} | ||
} |
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,9 @@ | ||
package bio.overture.songsearch.model; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class Sort { | ||
String fieldName; | ||
String order; | ||
} |
Oops, something went wrong.