-
Notifications
You must be signed in to change notification settings - Fork 532
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(discovery-v1): document status & query aggregation update
DocumentStatus: documentID, status, and statusDescription are now optional. QueryAggregation: BREAKING QueryAggregation subclasses changed. BREAKING CHANGE: QueryAggregation: BREAKING QueryAggregation subclasses changed.
- Loading branch information
Showing
22 changed files
with
569 additions
and
515 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
30 changes: 0 additions & 30 deletions
30
discovery/src/main/java/com/ibm/watson/discovery/v1/model/Filter.java
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
discovery/src/main/java/com/ibm/watson/discovery/v1/model/Nested.java
This file was deleted.
Oops, something went wrong.
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
61 changes: 61 additions & 0 deletions
61
discovery/src/main/java/com/ibm/watson/discovery/v1/model/QueryFilterAggregation.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,61 @@ | ||
/* | ||
* (C) Copyright IBM Corp. 2022. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations under the License. | ||
*/ | ||
package com.ibm.watson.discovery.v1.model; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import java.util.List; | ||
|
||
/** A modifier that narrows the document set of the sub-aggregations it precedes. */ | ||
public class QueryFilterAggregation extends QueryAggregation { | ||
|
||
protected String match; | ||
|
||
@SerializedName("matching_results") | ||
protected Long matchingResults; | ||
|
||
protected List<QueryAggregation> aggregations; | ||
|
||
/** | ||
* Gets the match. | ||
* | ||
* <p>The filter that is written in Discovery Query Language syntax and is applied to the | ||
* documents before sub-aggregations are run. | ||
* | ||
* @return the match | ||
*/ | ||
public String getMatch() { | ||
return match; | ||
} | ||
|
||
/** | ||
* Gets the matchingResults. | ||
* | ||
* <p>Number of documents that match the filter. | ||
* | ||
* @return the matchingResults | ||
*/ | ||
public Long getMatchingResults() { | ||
return matchingResults; | ||
} | ||
|
||
/** | ||
* Gets the aggregations. | ||
* | ||
* <p>An array of sub-aggregations. | ||
* | ||
* @return the aggregations | ||
*/ | ||
public List<QueryAggregation> getAggregations() { | ||
return aggregations; | ||
} | ||
} |
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
Oops, something went wrong.