mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged searchrep (5.2.1) to 5.2.N (5.2.1)
136780 msuzuki: Search-340, amend from range to ranges git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@137055 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -123,7 +123,7 @@ public class SearchMapper
|
||||
fromSpellCheck(sp, searchQuery.getSpellcheck());
|
||||
fromHighlight(sp, searchQuery.getHighlight());
|
||||
fromFacetIntervals(sp, searchQuery.getFacetIntervals());
|
||||
fromRange(sp, searchQuery.getFacetRange());
|
||||
fromRange(sp, searchQuery.getFacetRanges());
|
||||
fromScope(sp, searchQuery.getScope(), searchRequestContext);
|
||||
fromLimits(sp, searchQuery.getLimits());
|
||||
fromTimezone(sp, searchQuery.getTimezone());
|
||||
@@ -534,7 +534,7 @@ public class SearchMapper
|
||||
{
|
||||
if(rangeParams != null)
|
||||
{
|
||||
ParameterCheck.mandatory("range", rangeParams);
|
||||
ParameterCheck.mandatory("ranges", rangeParams);
|
||||
ParameterCheck.mandatory("field", rangeParams.getField());
|
||||
ParameterCheck.mandatory("start", rangeParams.getStart());
|
||||
ParameterCheck.mandatory("end", rangeParams.getEnd());
|
||||
|
@@ -61,7 +61,7 @@ public class SearchQuery
|
||||
private final boolean includeRequest;
|
||||
private final List<Pivot> pivots;
|
||||
private final List<StatsRequestParameters> stats;
|
||||
private final RangeParameters range;
|
||||
private final RangeParameters ranges;
|
||||
private final String timezone;
|
||||
|
||||
public static final SearchQuery EMPTY = new SearchQuery(null, null, null, null, null, null,
|
||||
@@ -87,7 +87,7 @@ public class SearchQuery
|
||||
@JsonProperty("facetIntervals")IntervalParameters facetIntervals,
|
||||
@JsonProperty("pivots") List<Pivot> pivots,
|
||||
@JsonProperty("stats") List<StatsRequestParameters> stats,
|
||||
@JsonProperty("range") RangeParameters range,
|
||||
@JsonProperty("ranges") RangeParameters ranges,
|
||||
@JsonProperty("timezone") String timezone)
|
||||
{
|
||||
this.query = query;
|
||||
@@ -108,7 +108,7 @@ public class SearchQuery
|
||||
this.facetIntervals = facetIntervals;
|
||||
this.pivots = pivots;
|
||||
this.stats = stats;
|
||||
this.range = range;
|
||||
this.ranges = ranges;
|
||||
this.timezone = timezone;
|
||||
}
|
||||
|
||||
@@ -201,9 +201,9 @@ public class SearchQuery
|
||||
return stats;
|
||||
}
|
||||
|
||||
public RangeParameters getFacetRange()
|
||||
public RangeParameters getFacetRanges()
|
||||
{
|
||||
return range;
|
||||
return ranges;
|
||||
}
|
||||
|
||||
public String getTimezone()
|
||||
|
Reference in New Issue
Block a user